我在使用表单设计器和我的项目设计的表单时遇到了一些麻烦,它会在显示时立即关闭.这是相关的代码:
namespace Grapher
{
class Program
{
static void Main(string[] args)
{
InputForm mainForm = new InputForm();
mainForm.Show();
}
}
}
Run Code Online (Sandbox Code Playgroud)
我试图输入for(;;)但是这只是for for hang,我可能正在做一些愚蠢的事情,对C#来说很新.
提前致谢.
小智 11
namespace Grapher
{
class Program
{
static void Main(string[] args)
{
Application.Run(new InputForm());
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7450 次 |
| 最近记录: |