Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir/mam i have 50 forms and one page is main page thats put menus. i want when i click menu item the page is open according to main page center ?? please help me i tired.....
And all pages without border except main page
Posted
Comments
CHill60 29-Apr-14 8:12am    
Not quite clear ... do you want the forms repositioned when you click the menu item?
Member 10285877 1-May-14 1:18am    
ya sir when i click menu item then form show me cnter in main page

To center an MDI child form within its parent, see the answer to this[^] SO question.

/ravi
 
Share this answer
 
Comments
Member 10285877 1-May-14 1:18am    
but sir i have no take mdi form
Ravi Bhavnani 1-May-14 7:23am    
In that case, set the form's StartPosition property (in the designer) to CenterScreen.

/ravi
Member 10285877 5-May-14 0:49am    
sir one question sir how to minimize and maxi,ize form in according to main form when i minimize the main page all the form minimize and when i maximize all the form maximize i write code like this :-
private void frm_Main_Resize(object sender, EventArgs e)
{

if (this.WindowState == FormWindowState.Minimized)
{
foreach (Form frm in Application.OpenForms)
{
frm.WindowState = FormWindowState.Minimized;
}
}
else if (this.WindowState == FormWindowState.Normal)
{
foreach (Form frm in Application.OpenForms)
{
frm.WindowState = FormWindowState.Normal;
}
}
}
Check out this link:

Page Center to the Screen

Hope it helps :)
 
Share this answer
 
just go to your properties and look for start screen and select your option.
 
Share this answer
 

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