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