[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

(Easy Noobie question) Visual studio, starting with form2 instead of form1

Hi,
project with two forms in it, heres a screenshot:

[URL=http://img151.imageshack.us/i/57770706.png/][IMG]http://img151.imageshack.us/img151/6856/57770706.png[/IMG][/URL]



 the probem is everytime i run the project it starts with form1.cs

how can i set it to start with form2.cs instead?

I think this will be an easy question for a experienced user, but tell me if i am wrong and will increase the pts (i dont have many pts).

Thanks!
0
lopband
Asked:
lopband
  • 4
1 Solution
 
derftoyCommented:
Right click the project and select properties.  You want the project properties page.  Select the Applciation tab.  Under that you will see a drop down box for Startup form:  Choose your form from there.
0
 
lopbandAuthor Commented:
I dont see it, this is what i see:
[URL=http://img519.imageshack.us/i/vs2r.png/][IMG=http://img519.imageshack.us/img519/7562/vs2r.png][/IMG][/URL]
0
 
lopbandAuthor Commented:
and clicking on startup object only has Lesson13.program there

I am on VS 2008 pro edition
0
 
lopbandAuthor Commented:
Ok, from your initial response I got google to give me the answer:

"you have to go to Program.cs file and change the FormClass in main method"


Thanks!
0
 
lopbandAuthor Commented:
Thanks for "startup form" that helped ;)

Cheers!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now