Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am working with forms, how to open all forms at a same place in desktop, without jumping one place to another.
Posted

you can easily write

form1 f1= new form1();
f1.Show();


form2 f2= new form2();
f2.show();

form3 f3= new form3();
f3.show();
 
Share this answer
 
Hi,

do you want open all forms in a separat window or in the same window?

If you want to open all in a separat window set the location-property in the Onload-Method.
 
Share this answer
 
Comments
manoharnch 8-Aug-11 6:49am    
I want to open in same window but they are opening in different pleases like when i open form1 it will in in center of desktop, form2 in leftcorner of desktop like that, so i want to open all in one place
Have you tried form's StartPosition property.
Set this to Manual and assign you required Location.
That's it.
 
Share this answer
 
Comments
manoharnch 8-Aug-11 6:51am    
yes sir i used it, i had two forms in form one i put a button to open form 2, form 2 is opening but is in top left corner of desktop.

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