08 2022 档案

C# 选择文件 选择文件夹 无响应 闪退问题
摘要:选择文件 OpenFileDialog 使用注释中的即可 private static OpenFileDialog openFileDialog; private static DialogResult result1; /// <summary> /// 打开文件 /// </summary> 阅读全文

posted @ 2022-08-29 11:33 糯米白白 阅读(611) 评论(0) 推荐(0) 编辑

C# Word替换文本
摘要:引用 Nuget包 Spire.Doc 使用Spire.Doc会在文档开头生成水印 using (Document doc = new Document(templateWordFilePath)) { doc.Replace("oldvalue", "newvalue", true, false) 阅读全文

posted @ 2022-08-29 11:28 糯米白白 阅读(159) 评论(0) 推荐(0) 编辑

C# PDF加密
摘要:引用 Nuget itext7 using iText.Kernel.Pdf; using System; using System.Collections.Generic; using System.Linq; using System.Runtime; using System.Text; us 阅读全文

posted @ 2022-08-29 11:21 糯米白白 阅读(343) 评论(0) 推荐(0) 编辑

C# 生成压缩包
摘要:引用 Nuget包 ICSharpCode.SharpZipLib using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文

posted @ 2022-08-29 11:17 糯米白白 阅读(84) 评论(0) 推荐(0) 编辑

C# 读取XML数据
摘要:引用 System.Xml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; na 阅读全文

posted @ 2022-08-29 11:16 糯米白白 阅读(674) 评论(0) 推荐(0) 编辑

C# Word文档转PDF
摘要:引用 Nuget包 Microsoft.Office.Interop.Word using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.T 阅读全文

posted @ 2022-08-29 11:13 糯米白白 阅读(1643) 评论(0) 推荐(0) 编辑

C# XML读取
摘要:https://www.cnblogs.com/yuanshuang-club/p/12022037.html 阅读全文

posted @ 2022-08-26 14:18 糯米白白 阅读(5) 评论(0) 推荐(0) 编辑

正则表达式
摘要:一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1,2})?$ 带1 阅读全文

posted @ 2022-08-26 10:40 糯米白白 阅读(14) 评论(0) 推荐(0) 编辑

C# 金额转大写
摘要:/// <summary> /// 金额转大写 /// </summary> /// <param name="s"></param> /// <returns></returns> public static string AmountToChinese(double s) { s = Math. 阅读全文

posted @ 2022-08-25 18:02 糯米白白 阅读(126) 评论(0) 推荐(0) 编辑

C#中ToString数据类型格式大全(千分符)总结
摘要:用DataFormatString格式化GridView 在 GridView里面显示数据,要显示的数据有好多位小数,就想让它只显示两位小数,在delphi里,直接用DisplayFormat就行了, 在.net中,查了半天msdn,发现使用DataFormatString是可以实现这个功能的,但是 阅读全文

posted @ 2022-08-25 15:20 糯米白白 阅读(519) 评论(0) 推荐(0) 编辑

SQLite 将字符串拼接
摘要:SQLite中不是使用的‘+’来操作,是需要使用特殊符号“||” 例如:如果是其他字段形式的需要先装换为 字符型 使用CAST(字段名 as TEXT) select CAST(column as TEXT) || '%' from table 用'||'拼接字符串 比如column是100的话 那 阅读全文

posted @ 2022-08-25 14:07 糯米白白 阅读(2723) 评论(0) 推荐(0) 编辑

C# 缓存的使用
摘要:https://www.cnblogs.com/snailblog/p/11570094.html 阅读全文

posted @ 2022-08-24 12:02 糯米白白 阅读(11) 评论(0) 推荐(0) 编辑

C# OpenFileDialog 无响应
摘要:C# OpenFileDialog无响应 private Thread invokeThread; private OpenFileDialog openFileDialog1; private DialogResult result; private void linkLabel1_LinkCli 阅读全文

posted @ 2022-08-23 17:38 糯米白白 阅读(38) 评论(0) 推荐(0) 编辑

VS 显示方法引用的设置方法
摘要:https://developer.aliyun.com/article/802986 阅读全文

posted @ 2022-08-23 14:02 糯米白白 阅读(454) 评论(0) 推荐(0) 编辑

C#连接sqlserver windows 和 sqlserver 身份验证的两种连接字符串
摘要:常用配置字段 Application Name(应用程序名称):应用程序的名称。如果没有被指定的话,它的值为.NET SqlClient Data Provider(数据提供程序). AttachDBFilename/extended properties(扩展属性)/Initial File Na 阅读全文

posted @ 2022-08-23 11:25 糯米白白 阅读(3792) 评论(0) 推荐(0) 编辑

VS中报错“预定义类型system.void未定义或导入”
摘要:重新安装VS,原因是.net core中的文件可能少了打开core项目就报错 阅读全文

posted @ 2022-08-23 10:47 糯米白白 阅读(59) 评论(0) 推荐(0) 编辑

安装vs2019提示网络未连接
摘要:1、"控制面板" -> "网络和Internet" -> "网络和共享中心" -> "更改适配器选项" 2、"网络属性" -> "TCP/IPv4 属性" 3、修改DNS服务器地址 在首选DNS服务器输入:8.8.8.8 在备用DNS服务器输入:8.8.4.4 4.最后点击确定就可以下载了 原文转载 阅读全文

posted @ 2022-08-23 10:45 糯米白白 阅读(224) 评论(0) 推荐(0) 编辑

C# Serilog 使用
摘要:使用时需要引用两个Nuget包 Serilog Serilog.Sinks.File ![](https://img2022.cnblogs.com/blog/2922453/202208/2922453-20220822150612536-581449977.png) ![](https://im 阅读全文

posted @ 2022-08-22 14:42 糯米白白 阅读(324) 评论(0) 推荐(0) 编辑

Sys.WebForms.PageRequestManagerServerErrorException
摘要:在 ScriptManager 内添加 EnablePartialRendering="false" 显示详细的错误信息。 如下: <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false" 阅读全文

posted @ 2022-08-19 15:22 糯米白白 阅读(26) 评论(0) 推荐(0) 编辑

VS编译时 resources.dll 找不到该文件
摘要:下载dll及原文:https://www.jb51.net/dll/resources.dll.html#downintro2 resources.dll控件常规安装方法(仅供参考): 一、如果在运行某软件或编译程序时提示缺少、找不到resources.dll等类似提示,您可将从脚本之家下载来的re 阅读全文

posted @ 2022-08-19 13:42 糯米白白 阅读(480) 评论(0) 推荐(0) 编辑

SQLServer 2008以上误操作数据库恢复方法——日志尾部备份
摘要:原文转载:https://blog.csdn.net/dba_huangzj/article/details/8491327 阅读全文

posted @ 2022-08-18 14:55 糯米白白 阅读(23) 评论(0) 推荐(0) 编辑

C# 语法糖汇总
摘要:语法糖 指计算机语言中添加的某种语法,这种语法对语言的功能并没有影响,但是更方便程序员使用。通常来说使用语法糖能够增加程序的可读性,从而减少程序代码出错的机会。 需要声明的是“语法糖”这个词绝非贬义词,它可以给我们带来方便,是一种便捷的写法,编译器会帮我们做转换,而且可以提高开发编码的效率,在性能上 阅读全文

posted @ 2022-08-18 12:00 糯米白白 阅读(52) 评论(0) 推荐(0) 编辑

无法在 DLL“SQLite.Interop.dll”中找到名为“SI7fca2652f71267db”的入口点。
摘要:首先,这个是在操作SQLite数据库,使用System.Data.SQLite包,需要这个文件SQLite.Interop.dll不然会报错 在生成项目的时候需要确保有这两个文件夹(可以生成完手动复制,也可以放在程序里设置文件复制) 还有可能是框架版本不统一情况 最好是统一框架 阅读全文

posted @ 2022-08-17 10:47 糯米白白 阅读(2754) 评论(0) 推荐(0) 编辑

telnet 测试邮箱服务器
摘要:https://blog.csdn.net/weixin_41632423/article/details/120266328 阅读全文

posted @ 2022-08-17 09:51 糯米白白 阅读(9) 评论(0) 推荐(0) 编辑

'telnet' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
摘要:https://www.cnblogs.com/xuziyu/p/10391462.html 阅读全文

posted @ 2022-08-17 09:50 糯米白白 阅读(14) 评论(0) 推荐(0) 编辑

System.Data.SQLite 操作SQLite数据库
摘要:创建一个新的控制台程序,框架选择.NET Framework 4.7.2 System.Data.SQLite这个是依赖EF引用包时会添加多余引用,当然使用EF的话可以用 引用nuget包,推荐 System.Data.SQLite.Core ,这个比较干净,没有依赖EF 之后在 Program u 阅读全文

posted @ 2022-08-17 09:45 糯米白白 阅读(1536) 评论(0) 推荐(0) 编辑

试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
摘要:两种原因: 第一种为程序的运行以平台系统位数不匹配,第二种则是该死的VS整出来的... 一般在下面三种情景下会发生. 1.64位系统上C#调用32位的C++ *.dll 2.64位系统上IIS发布含有32位的 *.dll应用程序时 3.64位系统上编写C++ *.dll,在64位系统上通过 C#调用 阅读全文

posted @ 2022-08-16 16:55 糯米白白 阅读(1198) 评论(0) 推荐(0) 编辑

.Net Core 中使用Microsoft.Data.Sqlite 来操作sqlite数据库
摘要:https://www.lebang2020.cn/details/210318gea541rv.html 阅读全文

posted @ 2022-08-16 16:52 糯米白白 阅读(576) 评论(0) 推荐(0) 编辑

You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().
摘要:sqlite数据库使用广泛,在net core中也自然也得到支持,当我使用如下代码直接打开数据库链接时报错了,System.Exception:“You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle packa 阅读全文

posted @ 2022-08-16 14:05 糯米白白 阅读(6597) 评论(2) 推荐(1) 编辑

C# System.Data.SQLite 建库
摘要:SQLite介绍 SQLite是一个开源、免费的小型RDBMS(关系型数据库),能独立运行、无服务器、零配置、支持事物,用C实现,内存占用较小,支持绝大数的SQL92标准。 SQLite数据库官方主页:http://www.sqlite.org/index.html cmd下sqlite的使用网 1 阅读全文

posted @ 2022-08-16 10:20 糯米白白 阅读(1264) 评论(0) 推荐(0) 编辑

C# 控制台交互
摘要:安装nuget包命令 `Install-Package Sharprompt` ``` // Simple input var name = Prompt.Input("What's your name?"); Console.WriteLine($"Hello, {name}!"); // Pas 阅读全文

posted @ 2022-08-15 17:06 糯米白白 阅读(163) 评论(0) 推荐(0) 编辑

笔记本查看wifi密码
摘要:https://product.pconline.com.cn/itbk/bjbzj/notebook/1709/9970517.html 阅读全文

posted @ 2022-08-15 15:30 糯米白白 阅读(21) 评论(0) 推荐(0) 编辑

SQLite之C#版 System.Data.SQLite使用方法
摘要:https://www.jb51.net/article/197036.htm 阅读全文

posted @ 2022-08-12 16:55 糯米白白 阅读(74) 评论(0) 推荐(0) 编辑

无法加载 DLL“SQLite.Interop.DLL”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
摘要:https://www.cnblogs.com/zd8866-it/p/7191028.html 阅读全文

posted @ 2022-08-12 16:55 糯米白白 阅读(193) 评论(0) 推荐(0) 编辑

Html 在线格式化工具
摘要:https://www.sojson.com/jshtml.html 阅读全文

posted @ 2022-08-12 11:56 糯米白白 阅读(237) 评论(0) 推荐(0) 编辑

Html 在线编辑器
摘要:https://www.runoob.com/try/try.php?filename=tryhtml_intro 阅读全文

posted @ 2022-08-12 11:56 糯米白白 阅读(64) 评论(0) 推荐(0) 编辑

Html Table自适应宽度,指定列固定宽度,其他列均分宽度
摘要:https://www.dongchuanmin.com/archives/677.html 阅读全文

posted @ 2022-08-12 11:55 糯米白白 阅读(450) 评论(0) 推荐(0) 编辑

Outlook客户端解析Html类型邮件样式问题
摘要:https://blog.csdn.net/u014505277/article/details/119828892 阅读全文

posted @ 2022-08-12 09:51 糯米白白 阅读(262) 评论(0) 推荐(0) 编辑

js createElement 加事件
摘要:<script> window.onload = function () { var input = document.createElement('input'); var button = document.createElement('input'); input.type ='text'; 阅读全文

posted @ 2022-08-10 15:12 糯米白白 阅读(598) 评论(0) 推荐(0) 编辑

SQL Server 错误行号
摘要:转载于:https://blog.csdn.net/weixin_33998125/article/details/94092971 阅读全文

posted @ 2022-08-05 17:09 糯米白白 阅读(14) 评论(0) 推荐(0) 编辑

Linq语法相互转换
摘要:var query = subTaskQuery .Join(configQuery, st => st.Status, c => c.Id, (st, c) => new { st, c }).DefaultIfEmpty() .Join(routineTaskQuery, join => joi 阅读全文

posted @ 2022-08-05 11:53 糯米白白 阅读(48) 评论(0) 推荐(0) 编辑

C# Aspose.Cells 样式
摘要:protected void btnAsnExport_ServerClick(object sender, EventArgs e) { var getAsnData = SearchDataClass.GetAsnSearchData(txtAsnNo.Value, hfCustomerID.V 阅读全文

posted @ 2022-08-05 10:10 糯米白白 阅读(418) 评论(0) 推荐(0) 编辑

Sqlserver 根据年月获取第一天和最后一天
摘要:sqlserver获取当月、年的第一天和最后一天 -- 当月第一天 select dateadd(month, datediff(month, 0, getdate()), 0) -- 当月最后一天(思路:下月的第一天减去一天) select dateadd(month, datediff(mont 阅读全文

posted @ 2022-08-04 17:08 糯米白白 阅读(3302) 评论(0) 推荐(0) 编辑

Sqlserver2014 安装
摘要:https://jingyan.baidu.com/article/d5a880eb992f6352f147ccf1.html 阅读全文

posted @ 2022-08-04 13:50 糯米白白 阅读(9) 评论(0) 推荐(0) 编辑

Microsoft.AspNetCore.Identity 配置
摘要:https://blog.csdn.net/playermaker57/article/details/96713891 阅读全文

posted @ 2022-08-04 13:50 糯米白白 阅读(142) 评论(0) 推荐(0) 编辑

新电脑 分盘
摘要:https://baijiahao.baidu.com/s?id=1734234902590717022&wfr=spider&for=pc 阅读全文

posted @ 2022-08-04 13:34 糯米白白 阅读(19) 评论(0) 推荐(0) 编辑

ABP 密码规则配置
摘要:``` //密码验证规则 services.Configure(options => { options.Password.RequireDigit = false; options.Password.RequireLowercase = false; options.Password.Requir 阅读全文

posted @ 2022-08-03 11:08 糯米白白 阅读(480) 评论(0) 推荐(0) 编辑

Windows添加自定义服务
摘要:1.新建文件 新建xml文件 命名 Name-service.xml <service> <!-- ID of the service. It should be unique across the Windows system--> <id>ServerID</id> <!-- Display n 阅读全文

posted @ 2022-08-01 16:36 糯米白白 阅读(1323) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示