This is a migrated thread and some comments may be shown as answers.

Tabbed Document GotFocus

1 Answer 64 Views
Dock
This is a migrated thread and some comments may be shown as answers.
William Willson
Top achievements
Rank 1
William Willson asked on 09 Dec 2010, 03:22 AM
Probably an easy question but for some reason the Form_GotFocus event is not firing on my docked RadForm.  Is there another event I can use to capture when the form receives the focus?

Thanks,
Will

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Dec 2010, 10:30 AM
Hi William,

Thank you for the question.

I am not sure what exactly your scenario is, but if you concern MDI, I was not able to reproduce the issue. Each time I select a document containing a form, this form fires the GotFocus event. Only the first time, when the documents get loaded you do not get the GotFocus event fired, because of the cycle that transfers the MDI children to normal docked windows.

If you want to get an event fired even in the case where the document windows are loaded for the first time, you can handle the ActiveWindowChanged event. I am attaching a sample project which demonstrates the approach.

I hope your find this information helpful.

Kind regards,
Nikolay
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
Dock
Asked by
William Willson
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or