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.
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.