摘要: public Form1() { InitializeComponent(); //运行隐藏 //this.WindowState = FormWindowState.Minimized; //this.ShowInTaskbar = false; //SetVisibleCore(false); 阅读全文
posted @ 2020-10-15 19:28 晨光静默 阅读(145) 评论(0) 推荐(0)
摘要: static void Main() { #if false Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); / 阅读全文
posted @ 2020-10-15 19:26 晨光静默 阅读(135) 评论(0) 推荐(0)
摘要: bool WriteTxtFile(string filename, string content) { bool bRet = false; FileStream fs = null; StreamWriter sw = null; try { FileInfo fi = new FileInfo 阅读全文
posted @ 2020-10-15 19:07 晨光静默 阅读(113) 评论(0) 推荐(0)
摘要: c#版本: private bool SetAutoRun(bool onFlag) { bool bRet = true; try { string path = Application.ExecutablePath; RegistryKey rk = Registry.LocalMachine; 阅读全文
posted @ 2020-10-15 17:23 晨光静默 阅读(146) 评论(0) 推荐(0)