How do I open a form in WinForm

Ace1000

Member
Joined
Aug 29, 2015
Messages
8
Programming Experience
1-3
I am new to WinForm.
I have Visual Studio Express 2015 I have a project with 5 forms.
Form1, Form2, Form3, Form4, Form5.

Form1 opens by default when I start application. I am working on Form5.
Question:
How do I open ONLY Form5 for testing?

I don't want to put a link from Form1 to Form5. I am not talking about writing some code to open a form.
 

IanRyder

Well-known member
Joined
Sep 9, 2012
Messages
1,130
Location
Healing, NE Lincs, UK
Programming Experience
10+
Hi,

Go to Project on the Menu, Select Project Properties and change the Startup Form to your desired form.

Hope that helps.

Cheers,

Ian
 

Ace1000

Member
Joined
Aug 29, 2015
Messages
8
Programming Experience
1-3
Thanks Ian.

I don't know why I didn't think of that.

Is there another method that you know of that does not require changing Form5 to the default Startup Form?
I was so used to the world of MS Access where you can open any form you want.

Thanks
 

IanRyder

Well-known member
Joined
Sep 9, 2012
Messages
1,130
Location
Healing, NE Lincs, UK
Programming Experience
10+
Hi,

Not really and I am not sure what the point or the benefit would be. Whichever Form you choose you need an Application Entry Point which is a Form in a Windows Forms Application.

Cheers,

Ian
 

Ace1000

Member
Joined
Aug 29, 2015
Messages
8
Programming Experience
1-3
I came from Access/VBA background where the configuration holds a single form as default and you can pretty much open any form in design or open mode without any configuration change.
I am testing a lot of different mini code snippets for learning purposes in numerous forms.
It's not too much work to change the default form. So I can't complain.
 
Top Bottom