在C#中更改启动表单 [英] Changing startup form in C#

查看:58
本文介绍了在C#中更改启动表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010 Express,但我不知道当程序运行时如何更改启动窗体,因为我的应用程序中有多个窗体。我想这样做,但我发现我创建的每个表单都使用相同的名称空间。
请帮助我。

I am using visual studio 2010 express but i wonder how can i change startup form when the program runs as i have multiple form within my application. I thought of doing so but i figured out that every form i am creating uses the same namespace. Please help me.

推荐答案

查找 Program.cs Main 函数中用于类似这样的事情

Look in Program.cs in the Main function for something like this

Application.Run(new MyForm());

MyForm 更改为其他表单。

这篇关于在C#中更改启动表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆