Align the Group Box Center of the Form...?

pad

Member
Joined
Jan 18, 2005
Messages
14
Programming Experience
5-10
Hi...

How to Align the Group Box in the Center of the Form... in VB.Net...?

Need the code...

Thanks in Advance...
 
Look into handling the Resize event of the form and manually set the Location property of the GroupBox. It is a pretty simple equation where you subtract the width of the groupbox from the form's width and divide by 2 to get the left position. Similar for the top.
 
Back
Top