Tabbed Document GotFocus

2 posts, 0 answers
  1. William Willson
    William Willson avatar
    3 posts
    Member since:
    Jul 2009

    Posted 08 Dec 2010 Link to this post

    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?

  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 10 Dec 2010 Link to this post

    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,
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
Back to Top