S
Severino
Hello,
I'm developing a .NET component that contains a control derived from the
GroupBox class in the following way:
public __gc class MyGroupBox : public System::Windows::Forms::GroupBox
{
...
}
all works correctly apart from the fact that MyGroupBox, once inserted into
a form, will not act as a control container but as a simple control: if I
put a Radio button inside this control and try to move it around at
design-time, the Radio button will not move accordingly: looking the form
code I can see that the Radio button has been added as a child of the form
instead of being added as a child of the GroupBox.
Is there something I should be aware of? Is there a turnaround for this?
Thanks in advance and Kind regards
Severino
I'm developing a .NET component that contains a control derived from the
GroupBox class in the following way:
public __gc class MyGroupBox : public System::Windows::Forms::GroupBox
{
...
}
all works correctly apart from the fact that MyGroupBox, once inserted into
a form, will not act as a control container but as a simple control: if I
put a Radio button inside this control and try to move it around at
design-time, the Radio button will not move accordingly: looking the form
code I can see that the Radio button has been added as a child of the form
instead of being added as a child of the GroupBox.
Is there something I should be aware of? Is there a turnaround for this?
Thanks in advance and Kind regards
Severino