【1】
static void Main(string[] args)
{
Application.Run(new name());//name是窗体的类
}
缺点,不可以实例化窗体对象
【2】
name.ShowDialog();
缺点,关闭窗口无法使用托盘
04-28
9294
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-20
3389
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
【1】
static void Main(string[] args)
{
Application.Run(new name());//name是窗体的类
}
缺点,不可以实例化窗体对象
【2】
name.ShowDialog();
缺点,关闭窗口无法使用托盘