Visual Studio编码帮助。 。 [英] Visual Studio coding assistance . .

查看:63
本文介绍了Visual Studio编码帮助。 。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.NET框架的新手。在一个项目中,我设计了2个表单,我尝试运行表单只运行第一个表单,我无法运行第二个表单。我正在使用Visual Studio 2008。请帮助我运行选定的表单。

解决方案

在Windows应用程序中,一次只允许运行一个表单,除非您为第二个表单提供了任何链接第一个。

要运行第二个表单,请按照步骤



转到解决方案资源管理器 - >点击我的项目文件夹 - >将打开一个新窗口,在左侧您将找到一个应用程序选项卡 - >单击后,您将看到一个名为StartUp URI的选项 - >点击该选项并选择您的第二个表单 - >按F5



你的第二张表格会运行..



希望它能帮上..


< blockquote>请查看以下文章,



C#中的主要方法 [ ^ ]



查询问题



如果我们有更多类使用Main()方法怎么办?


打开Program.cs文件并更改Application.Run(new Form1中());到你的其他形式。


I m new to .NET framework . In a single project I hav designd 2 form , wen i try to run form it s running only 1st form , i m not able to run 2nd form . I am using Visual Studio 2008 . Pls help me to run selected forms.

解决方案

In windows application only one form is allowed to run at a time until and unless you provided any link for the second form in the first.
To run the second form follow the steps

Go to Solution explorer->Click on My Project folder->one new window will open where at left side you will find one application tab->after clicking on that you will see one option called StartUp URI->click on that and select your second form->press F5

Your second form will run..

Hope it will help..


Please check below article,

Main Method in C#[^]

Check question

"What if we have more classes with Main() method?"


Open your "Program.cs" file and change the "Application.Run(new Form1());" to your "other form".


这篇关于Visual Studio编码帮助。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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