Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Set focus on child control
posted

I have GridLayout panel inside that i have a frame control, under a frame control I have a Border control and under a border control i have textbox control. These controls are rendered through c#. I want to set focus on the textbox control which is under the Border control, help me out in achieving this. Thanks in advance.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm not sure I understand what you are asking or what it has to do with the GridBagLayoutPanel.

    I'm not familiar with a Frame Control or a Border control. These sounds like they might be WPF controls. If so, you should post in the WPF forums - this forum is for WinForms.

    In Winforms, setting focus to a TextBox is simply a matter of calling the Focus method on the control. The fact that it is contained within other controls makes no difference.

Children
No Data