How to get parent control

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

e.g. I have a Form which contains a GroupBox which in turn contains a Custom
Control that inherits from Button
I can use this.ParentForm to get the From
but how can I get the GroupBox (in this case only) (or any other control
that contains the custom control)

tjhx!
 
babylon said:
e.g. I have a Form which contains a GroupBox which in turn contains a Custom
Control that inherits from Button
I can use this.ParentForm to get the From
but how can I get the GroupBox (in this case only) (or any other control
that contains the custom control)

What about just Parent? I haven't tried it, but I'd *expect* that to
work.
 
Back
Top