我在C#中有一个Windows窗体应用程序,我正在试图找出在main()中实现CLI应用程序等效于主要while循环的位置.我正在使用Visual C#的gui设计师.
编辑:使用Timer实例解决了问题.
Meh*_*ari 13
它在Application.Run方法内部.您不应该GetMessage直接调用API函数:
// MyForm is derived from `System.Windows.Forms.Form` class
Application.Run(new MyForm());
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4983 次 |
| 最近记录: |