Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I am developing a C# application which start maximized. I am using a tab control inside the form and now I want to make sure that the controls appear in the middle of the screen. I want to make an entry form and want to make sure that all the controls appear in the center of the form. Any ideas?
Posted
Comments
Sergey Alexandrovich Kryukov 5-Mar-13 2:52am    
I have a good idea for your: read documentation, at least sometimes.
—SA

1 solution

Handle the form resize event, and set the new Location to
X = (formWidth - tabWidth) / 2
Y = (formHeight - tabHeight) / 2
 
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