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...
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
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.
 
Top Bottom