06 2023 档案
摘要:在win7以上系统中,进入网络适配器至少需要鼠标点击三下,对于网络设备调试非常不友好,需求在自己的diytools中添加一键打开功能 System.Diagnostics.Process.Start("cmd.exe", "/C control /name Microsoft.NetworkandS
阅读全文
摘要:System.Threading.Mutex mutex = new System.Threading.Mutex(false, "CottonGating"); bool Running = !mutex.WaitOne(0, false); if (!Running) { Application
阅读全文
摘要:为Form1窗体添加一个partial属性的分布类,需要以下几步: 1. 使用Visual Studio创建你的新工程,包含窗体Form12. 创建一个新文件,命名成这样的格式:Form1.Behind.cs 3. 新class编辑为partial属性5. 保存全部并关闭Visual Studio6
阅读全文
摘要:<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup> <r
阅读全文