Antoine Posted August 27, 2003 Posted August 27, 2003 How can I create for example button's in a groupbox ? In VB6 there was the container option, but according to VB.NET it's read only here. How can I do that ? The button's are designed during run-time Regards, Antoine Quote
*Gurus* divil Posted August 27, 2003 *Gurus* Posted August 27, 2003 Every control has a Controls collection, which is a collection of all its child controls. In VB6 the form has one controls collection of all the controls on it, in .NET this has changed. The answer to your question is to do myGroupBox.Controls.Add(myButton) Instead of Me.Controls.Add(myButton) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.