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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top