We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockingManager set active control without getting the focus

Thread ID:





80086 Mar 12,2009 11:18 AM UTC Mar 18,2009 11:46 AM UTC WinForms 3
Tags: Tools
Administrator [Syncfusion]
Asked On March 12, 2009 11:18 AM UTC

is it possible to show a docked control in the foreground without giving that control the focus?
We have a LoggingWindow that should be shown, if an error message is logged. At the moment we implemented this with the DockingManager.ActivateControl() method. The problem now is, that the focus is set to the LogWindow and the control that ownes the focus before looses it. So if a was editing a TextBox for example, the TextBox looses the focus and editing is not possible any more without clicking on the TextBox and set the focus on it before. So it would be nice, if I can "activate" a control without setting the focus on it. Could you please help me?



Mano J [Syncfusion]
Replied On March 13, 2009 02:39 PM UTC

Hi Frederik,

Did you try setting the focus to the textbox after activating the dock control?


This will transfer the focus back to the textbox.


Administrator [Syncfusion]
Replied On March 13, 2009 10:05 PM UTC

Hy Mano,
thank you for your answer.
Yes I tried this way, but if I do so, the focus is already lost, so the editing mode of the textbox is left and events like "validating" are fired. I am searching a solution that doesn´t change the focus.



Administrator [Syncfusion]
Replied On March 18, 2009 11:46 AM UTC

Hi Frederik,

Thanks for the update.

Please refer the sample below in which I have set focus to the textbox in the panel using ActivateControl method. I was not able to see that the focus is lost.


Please provide me more details if I misunderstood this.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon