Indeed, the ActiveControl
property of the form returns the respective ToolWindow
when a control inside the RadDock
is focused. When a window is activated, the NativeMethods.GetFocus
method is used to get the handle to the window that has the focus. Then this control is returned by using the Control.FromChildHandle
Note that the ToolWindow is a derivative of the ContainerControl
. After some research, I have found that the ActiveControl
is always returned to be the ContainerControl
for the Form.ActiveControl
property, not the hosted control inside. Please refer to the following threads which are quite useful on this topic:
has its own ActiveControl
property that will give you the desired focused control. Please have in min that RadTextBox
hosts the standard Ms TextBox
. Hence, it is expected to be returned as the ContainerControl.ActiveControl
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.