sethindeed Posted February 13, 2003 Posted February 13, 2003 Anybody knows how to load a control on a groupbox, so that I can refer correctly to the left and top property ? I know all the code about loading controls from classes, I just need to be able to load it on a groupbox. thx Quote What I don't know keeps me excited...
*Experts* Bucky Posted February 13, 2003 *Experts* Posted February 13, 2003 I'm not sure I understand what you mean to "load" the control on to the GroupBox. To add a control to a GroupBox, create a control, set its properties, and then add it to the GroupBox's Controls collection. Dim newTextBox As New TextBox() ' Set the newTextBox's size, text, and position properties here theGroupBox.Controls.Add(newTextBox) Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
sethindeed Posted February 13, 2003 Author Posted February 13, 2003 Many thanx :) Quote What I don't know keeps me excited...
sethindeed Posted February 13, 2003 Author Posted February 13, 2003 With your solution, all controls displayed properly except for the Comboboxes. THey just don't show at all even if theyy are loaded. Any clues ? Quote What I don't know keeps me excited...
*Experts* Nerseus Posted February 13, 2003 *Experts* Posted February 13, 2003 The following works for me (in the Form's load event): ComboBox o = new ComboBox(); o.Location = new Point(0, 0); groupBox1.Controls.Add(o); Can you show us your code? -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
sethindeed Posted February 13, 2003 Author Posted February 13, 2003 I found out which mistake I made. It is fixed now. Sorry Quote What I don't know keeps me excited...
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.