调试不是启动表单的特定表单 [英] Debug a specific form that is NOT the startup form

查看:72
本文介绍了调试不是启动表单的特定表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有9个表单的项目-   MainForm,  AboutForm,CountryForm,DataForm,FileCheckerForm,HelpForm,SetupForm,  TestingForm,TodayForm
MainForm是启动表单.

I have a project with 9 forms -  MainForm, AboutForm, CountryForm, DataForm, FileCheckerForm, HelpForm,SetupForm,  TestingForm, TodayForm
MainForm is the Startup Form. Is it possible to debug another of the forms without starting Main and doing whatever is needed to get to the form I want to debug without temporarily changing the Startup Form?

推荐答案

是否可以在不启动Main的情况下调试另一种表单,而无需临时更改启动表单就可以完成我要调试的表单所需的一切工作?
Is it possible to debug another of the forms without starting Main and doing whatever is needed to get to the form I want to debug without temporarily changing the Startup Form?

在项目属性/应用程序"下,有一个选项可以设置启动"表单.这可以是项目中的任何形式.是否适用于调试可能取决于表单之间的交互方式-如果主表单提供了信息 其他形式需要的,则可能需要其他形式的临时代码来提供默认值.

Under Project Properties / Application there is an option to set the 'Startup' form.  This can be any form in the project.  Whether that works for debugging might depend on how the forms interact with each other - If the main form supplies information that the other form needs, it may require temporary code in that other form to provide default values.


这篇关于调试不是启动表单的特定表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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