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
1921
How to set focus on first editable control in Docked Panel.
posted

Hi,

In my XamDockManager i have 4 content pane, 3 docked bottom and 1 docked at right side.

I have some textbox in right  docked pane. How can i set focus on textbox when the screen is load

/ based on some click event of the main screen (All docked pane may or maynot be in pinned and unpinned state)

I tried using textBox1.Focus(); This is not working. What i have to do for this?

 

 

 

Parents
No Data
Reply
  • 54937
    Suggested Answer
    Offline posted

    You can call the Activate method of the containing ContentPane. That will ensure that the pane is brought into view. This will also focus the first control in the navigation order within the contentpane. If you still have a problem, please post a sample and we can look at it.

Children