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
Vikas PanwarPosted Nov 1, 2021, 6:34 AM
Ganesan CPosted Sep 2, 2021, 11:07 AM
Priyanka K SPosted Sep 1, 2021, 5:57 PM
Jerry MaguirePosted Sep 1, 2021, 12:36 PM
jinu johnPosted Nov 30, 2006, 10:46 PM
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.
Srivignesh JaganathanPosted Nov 22, 2006, 11:41 PM
Thanks.
J. Srivignesh
vangala madhuriPosted Nov 5, 2006, 11:33 PM
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.
coco liuPosted Oct 5, 2006, 11:20 AM