与Windows Form Run Sessence相关的问题 [英] Question Related to windows Form Running Sequesnce

查看:44
本文介绍了与Windows Form Run Sessence相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改Windows窗体的窗体运行顺序?我的项目中有两种形式,第一种是Form1.cs,第二种是Update.cs,但是当我要运行更新时,每次只运行Form1而不是更新表单.

How to Change the Form running Sequence of Windows Form? There are two form in my project 1st is Form1.cs and second is Update.cs but when i want to run update Every time it is running only Form1 instead of update form.

推荐答案

查看您的program.cs文件-它通过在main方法中加载适当的表单来启动应用程序:
Look at your program.cs file - it starts the application by loading the appropriate form in the main method:
static void Main()
    {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new Form1());
    }


在这里更改Form1,就可以完成.


Change Form1 here, and you are done.


这篇关于与Windows Form Run Sessence相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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