Hi,
Please help me how to set the default page for a particular form in a windows application of c# solution. For example I have a visual c# solution with two forms as Form1.cs and Form2.cs. When I am exceuting the solution by default the Form1 is opening instead I want to open Form2 page, how can I do this?
Thanks & Regards,
J. Srivignesh
Loading

coco liu5 reputationPosted Oct 5, 2006, 7:20 AM EDT
vangala madhuri6 reputationPosted Nov 5, 2006, 6:33 PM EST
1.Right click on the Project
2.Click on properties
3.Select the desired form in the dropdown of 'startUp object'.
Note:the form name is available in the dropdown of the StartUp Object,only if the 'form to be selected' has a main method in it.
Srivignesh Jaganathan5 reputationPosted Nov 22, 2006, 6:41 PM EST
Thanks.
J. Srivignesh
jinu john9 reputationPosted Nov 30, 2006, 5:46 PM EST
static
void Main(){
Application.Run(
new Form1());}
in Application.Run(); give parameter as the name of the page we want to set as start page.
Jerry Maguire30 reputationPosted Sep 1, 2021, 8:36 AM EDT
Priyanka K SRank #1,385 · 1.2K reputationPosted Sep 1, 2021, 1:57 PM EDT
Ganesan CRank #369 · 6.8K reputationPosted Sep 2, 2021, 7:07 AM EDT
Vikas PanwarRank #1,447 · 1.1K reputationPosted Nov 1, 2021, 2:34 AM EDT