Dock and Form Events

3 posts, 0 answers
  1. David
    David  avatar
    66 posts
    Member since:
    Aug 2010

    Posted 12 Jan 2012 Link to this post

    Hi,

    I have a Main form that is set to MDI Parent This has a RadRibbon and a RadDock.the Dock is set to  Auto Detect Mdi Children

    I then Load a Form which contains a DataGridView in a Panel. I want to change the RadRibbon on the Main form to a Context Menu for the DataGridView when it is clicked and when the Form is Clicked the menu should return to the Form context.

    I can switch to the DataGridView using its GotFocusEvent

    To switch back the Form it is on does not fire the GotFocus, Activated or Click Events. is is possible to find out when the user has clicked on a form?

    Thanks
  2. David
    David  avatar
    66 posts
    Member since:
    Aug 2010

    Posted 12 Jan 2012 Link to this post

    Ignore all that I forgot I have a Panel on my Form that was stopping the events 

    Stupid me

    :)
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 17 Jan 2012 Link to this post

    Hi David,

    I am glad to hear that you have found a solution for your case. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Back to Top