Reaching Controls

Viewed 43

So lets say I have a Panel. Inside of it there is a Button and TextBox. I can reach those controls' control with panel.Controls[index] with this way.

I am trying to reach panel with reverse way. I mean lets say I click the textbox inside of panel. And the active control of form became the textbox. Is there any possible way to reach that panel with active control?

Panel -> Textbox instead of Active Control -> Panel

Thanks

0 Answers
Related