Hi,
If I am taking you properly, then adding groupboxes to your
winform is
pretty easy.
I have crated a form where I take input for how many
groupboxes to be
crated.In that form I have a panel where I attach all the
groupboxes.It
works properly.
int noOfGrpBxes =
Convert.ToInt32(this.txtNumber.Text.Trim());
GroupBox tempGroupBox = null;
for(int i = 0; i < noOfGrpBxes; i++)
{
tempGroupBox = new GroupBox();
tempGroupBox.Text = "GroupBox : " +
i.ToString();
tempGroupBox.Dock = DockStyle.Left;
// this
is the panel where I am attaching
//groupboxes
this.pnlGroupBoxes.Controls.Add(tempGroupBox);
}
Hope this code snippet will help.
If you need further help lemme know.
Arindam Sinha
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|