2021年5月11日
摘要: 控制台版本,winform更简单 static string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)+"/";[STAThread]static void Main( string[ ] a 阅读全文
posted @ 2021-05-11 18:04 mybkync 阅读(822) 评论(0) 推荐(0)
摘要: 在主线程上打上 [STAThread]标记就行 在main()最后一句 添加Application.Run(); 就能使控制台像窗体一样持久运行而不是阻塞啥也不干 [STAThread]static void Main( string[ ] args ){ WebBrowser webBrowser 阅读全文
posted @ 2021-05-11 01:35 mybkync 阅读(305) 评论(0) 推荐(0)