上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: using (FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate)) { //string[] resourceNames = this.GetType().Assembly.GetManifestResourceNames( 阅读全文
posted @ 2022-02-25 11:19 灰主流 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1.下载jdbc:Download - JDBC Driver for SQL Server | Microsoft Docs 2.提取jdbc的内容: 3.导入jar包到eclipse 输入代码,运行: package test; import java.sql.Connection; impor 阅读全文
posted @ 2021-12-17 01:38 灰主流 阅读(120) 评论(0) 推荐(0) 编辑
摘要: System.Diagnostics.Process.Start("timedate.cpl"); 阅读全文
posted @ 2021-11-29 09:44 灰主流 阅读(118) 评论(0) 推荐(0) 编辑
摘要: int handle = FindWindow(null, "XXX"); if (handle == 0)//0说明不存在 [DllImport("User32.dll", EntryPoint = "FindWindow")] private static extern int FindWind 阅读全文
posted @ 2021-11-20 11:14 灰主流 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 软件自启动的方式 参考文档: https://docs.microsoft.com/en-us/previous-versions/technet-magazine/ee851671(v=msdn.10)?redirectedfrom=MSDN 建议方式:1.快捷方式,2.2CurrentUser注 阅读全文
posted @ 2021-11-17 10:55 灰主流 阅读(248) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2021-10-27 10:35 灰主流 阅读(1076) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threadin 阅读全文
posted @ 2021-10-25 11:09 灰主流 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: c#读取剪切板数据的时候,通常读取字符串:var txt = Clipboard.GetText();但此时可能精度丢失,比如excel中,数据是:1.3213216532132,但是格式保留2个精度。 此时如果直接用文字读取剪切板,读取到的是格式化后的结果,即1.32。这时就丢失了精度。如下图。 阅读全文
posted @ 2021-10-21 13:25 灰主流 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 后台: private void TreeViewItem_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e) { e.Handled = true; } 前台: <TreeView Width="100"> <T 阅读全文
posted @ 2021-09-11 17:01 灰主流 阅读(101) 评论(0) 推荐(0) 编辑
摘要: AutoFac属性注册:反射:builder.RegisterType<AutoFacManager>().PropertiesAutowired(); 预先定义:builder.RegisterType<AutoFacManager>().WithProperty("person", new Wo 阅读全文
posted @ 2021-09-11 16:54 灰主流 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页