How do I open a form in WinForm
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.
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.
Go to Project on the Menu, Select Project Properties and change the Startup Form to your desired form.
Hope that helps.
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.
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.
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.
Tags for this Thread