How do i associate a label with a groupbox ?

dgage

Member
Joined
Jul 23, 2007
Messages
14
Programming Experience
10+
I have a groupbox and I wish to make labels dynamically and place them into the groupbox in an orderly fashion.
I can make the labels dynmically, but positioning them is the problem.

how do i set the label location so that it is not x,y based on the upper left of the form, but rather x,y based on the upper left of the groupbox ?

thanks -

Doug
 
The controls location is relative to their container. Add the labels to theGroupbox.Controls and set Location property.
 
Back
Top