09 2022 档案

摘要:一、bin文件 1、读写 /// <summary> /// 加载任意二进制文件 /// </summary> public static bool LoadBinaryFile(ref WaveData_Class testObj, string Fliepath) { bool res = fa 阅读全文
posted @ 2022-09-26 16:08 不溯流光 阅读(1588) 评论(0) 推荐(0) 编辑
摘要:一、读写 /// <summary> /// 保存到csv /// </summary> public static void SaveCsv(string Path, string[] strArr) { //string path = System.AppDomain.CurrentDomain 阅读全文
posted @ 2022-09-26 16:05 不溯流光 阅读(1437) 评论(0) 推荐(0) 编辑
摘要:一、ini文件 1、创建、读写 https://www.cnblogs.com/xmy-007/p/6400221.html 二、xml文件 1、读写 /// <summary> /// 加载xml文件保存到指定类 /// </summary> public static bool LoadXml( 阅读全文
posted @ 2022-09-26 15:54 不溯流光 阅读(192) 评论(0) 推荐(0) 编辑
摘要:一、读写TXT /// <summary> /// 读取txt /// </summary> public static string[] ReadTxt(string path) { List<string> str = new List<string>(); StreamReader sr = 阅读全文
posted @ 2022-09-26 15:48 不溯流光 阅读(1759) 评论(0) 推荐(0) 编辑
摘要:一、DataTable导入导出Excel using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.IO; using System.Linq; u 阅读全文
posted @ 2022-09-26 15:35 不溯流光 阅读(1060) 评论(0) 推荐(0) 编辑
摘要:一、DataTable与Excel的文件读写 1、Excel导出到DataTable using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO 阅读全文
posted @ 2022-09-26 09:42 不溯流光 阅读(1003) 评论(0) 推荐(0) 编辑
摘要:一、大量数据导出到Excel https://www.cnblogs.com/xiaoheihei/p/8315856.html 程序由原始的将数据一个表格一个表格地写入到EXCEL中,改变成程序先将数据存入二维数组中,然后再将数组值赋予EXCEL应用程序对象的VALUE属性,这样就使导出的效率提高 阅读全文
posted @ 2022-09-23 17:13 不溯流光 阅读(1600) 评论(0) 推荐(0) 编辑
摘要:一、Excel 1、Datagridview导出Excel https://blog.csdn.net/binbingbong/article/details/106051194 public class xlsP { public string sheetname { get; set; } pu 阅读全文
posted @ 2022-09-23 17:02 不溯流光 阅读(1221) 评论(0) 推荐(0) 编辑
摘要:一、PDF using iTextSharp.text; using iTextSharp.text.pdf; using System; using System.Collections.Generic; using System.IO; using System.Linq; using Syst 阅读全文
posted @ 2022-09-23 16:54 不溯流光 阅读(713) 评论(0) 推荐(0) 编辑
摘要:一、入门教程 https://blog.csdn.net/cytcytcytcytcyt/article/details/124074620 阅读全文
posted @ 2022-09-22 18:39 不溯流光 阅读(64) 评论(0) 推荐(0) 编辑
摘要:一、更改元素背景色 可以为所有元素设置背景色,这包括 body 一直到 em 和 a 等行内元素。 1、元素背景色 p {background-color: gray;} 2、背景色从元素中的文本向外延伸 只需增加一些内边距: p {background-color: gray; padding: 阅读全文
posted @ 2022-09-22 18:36 不溯流光 阅读(256) 评论(0) 推荐(0) 编辑
摘要:一、操作汇总 1、打开.sln文件加载项目失败 点击确定后提示缺少.csproj文件。重新生成解决方案: 2、VS2013设置类或函数前不显示引用的数量 找到菜单栏: 工具 > 选项 > 文本编辑器 > 所有语言 > CodeLens设置取消启用CodeLens,并保存。 3、引用程序集带有黄色叹号 阅读全文
posted @ 2022-09-19 10:51 不溯流光 阅读(442) 评论(0) 推荐(0) 编辑
摘要:需要两个dll:Ivi.Visa.dllNationalInstruments.Visa.dll 范例链接:https://pan.baidu.com/s/1_mUQ018RBIrPnqJUDaKgAQ 提取码:9sl0 private ResourceManager _rmSession; pri 阅读全文
posted @ 2022-09-13 10:58 不溯流光 阅读(393) 评论(0) 推荐(0) 编辑
摘要:一、概念 调用DLL时需编写入口点,如: [DllImport("CHR34XXX.dll", SetLastError = true, CallingConvention = CallingConvention.StdCall)] public static extern bool CHR34XX 阅读全文
posted @ 2022-09-13 10:42 不溯流光 阅读(2558) 评论(0) 推荐(0) 编辑
摘要:一、内存占用大量资源的解决办法 1、定时清理 exe运行后占用内存一直增加导致软件越来越卡,调试发现是没调用一次某DLL函数就会增加一次,应该是内存泄露了,但就是没找到原因。 在主程序里加这段代码,定时清理内存,可暂时规避这一问题。 #region 内存回收 [DllImport("kernel32 阅读全文
posted @ 2022-09-13 10:23 不溯流光 阅读(1016) 评论(0) 推荐(0) 编辑
摘要:1、下载.net 3.5 离线包下载地址:链接: https://pan.baidu.com/s/1y8GS-ook91RSkx9WGHSbDA 提取码: 29w62、文件下载后改个名字netfx3.cab;3、拷贝到系统盘C:\Windows目录下;4、以管理员身份运行命令提示符,并输入以下命令: 阅读全文
posted @ 2022-09-13 09:55 不溯流光 阅读(1686) 评论(0) 推荐(0) 编辑
摘要:一、概念 指它的概率密度函数服从高斯分布(即正态分布)的一类噪声。 如果一个噪声,它的幅度分布服从高斯分布,而它的功率谱密度又是均匀分布的,则称它为高斯白噪声。 二、生成高斯分布随机数 public double GetGaussDistributeRandom(double miu, double 阅读全文
posted @ 2022-09-09 17:21 不溯流光 阅读(308) 评论(0) 推荐(0) 编辑
摘要:一、适应高DPI 1、解决C# Winform高DPI字体模糊的两种方案 https://blog.csdn.net/ffx54611/article/details/103530282 2、在小屏幕电脑上界面显示不全的问题 https://bbs.csdn.net/topics/392317141 阅读全文
posted @ 2022-09-09 13:34 不溯流光 阅读(310) 评论(0) 推荐(0) 编辑
摘要:1、SkinBuilder软件生成皮肤的使用 https://blog.csdn.net/letianok/article/details/7283057 2、IrisSkin4.dll皮肤引用集 https://www.cnblogs.com/dearzhoubi/p/8777580.html 3 阅读全文
posted @ 2022-09-09 13:29 不溯流光 阅读(203) 评论(0) 推荐(0) 编辑
摘要:段落设置成了标题2样式但目录中没有显示全部的二级目录。 解决方案: https://www.cnblogs.com/Java-Starter/p/10188956.html 即:在博客园编辑页面中,点击HTML,,检查一下异常的标题的段落与正常显示的标题段落有什么不同,修改HTML代码后保存即可。 阅读全文
posted @ 2022-09-09 10:44 不溯流光 阅读(170) 评论(0) 推荐(0) 编辑
摘要:一、无参数线程的创建 Thread thread = new Thread(new ThreadStart(getpic)); thread.Start(); private void showmessage() { Console.WriteLine("hello world"); } 二、1个参 阅读全文
posted @ 2022-09-08 17:44 不溯流光 阅读(142) 评论(0) 推荐(0) 编辑
摘要:一、Aspose.Cells.dll 1、从DataTable导入、导出Excel using System; using System.Collections.Generic; using System.Text; using Aspose.Cells; using System.Data; pu 阅读全文
posted @ 2022-09-08 17:04 不溯流光 阅读(1842) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示