Adding a label to a group box in runtime...
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
I have a group box called box. I would like to create a label (label1) that I want to create in runtime and add it to the group box. How do I go about doing that? I can create it in runtime just fine. I just can't seem to get it to be inside the group box. Thanks in advance.
-
I have a group box called box. I would like to create a label (label1) that I want to create in runtime and add it to the group box. How do I go about doing that? I can create it in runtime just fine. I just can't seem to get it to be inside the group box. Thanks in advance.
box.Controls.Add(myNewLabelThatIJustCreated);
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.