Click here to Skip to main content
15,891,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing one project. My project has three window forms respectively login form, register form and welcome page. but unfortunately i started my project with welcome page then i added other forms. here only problem occurred. when i debug it directly showing welcome form. How to change the order of the forms. I want order like login form then welcome form.....
Thank You Everyone.....
Posted

Here you go - MSDN: How to: Choose the Startup Form in a Windows Application[^]

A Google search would have saved you a lot of time. ;)
 
Share this answer
 
Try this in the Program.cs file change this:

C#
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new login ());
        }


hope it helps :)
 
Share this answer
 
Comments
Nagesh Reddy 27-Jun-13 6:33am    
@Uday P.Singh good answer...! I learnt the new from you. From starting of my learning , i struggled about this. you solved it. Thank You....
Nagesh Reddy 27-Jun-13 6:41am    
@Uday P.Singh I am doing one project of live gold prices which is using php, mysql and one app for customers. I have lot of doubts on this project. Can u resolve me? I am a begineer. Thanks for your help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900