Hide default MDI menu

5 posts, 1 answers
  1. Joe
    Joe avatar
    8 posts
    Member since:
    Apr 2009

    Posted 30 Nov 2009 Link to this post


    I'm using a RadForm as an MDI container and loading child MDI forms into it.  I load the child forms in a maximized state but seem to be unable to hide the default MDI menu in the parent form.

    The MDI section of the RadForm documentation says:

    "When a MDI child Form is maximized, it automatically hides its title bar and the parent form displays a default MDI menu. This menu contains controls can execute the basic window commands on the currently maximized MDI child:"

    I would like the "default MDI menu" to be hidden.  I will control the windowstate of the child forms myself. 

    I've tried setting the MinimizeBox and MaximizeBox to false (on the child forms) and also changing the FormBorderStyle, all to no avail.



    Any help or advice would be greatly appreciated.

    Please see the attached JPG for an illustration.

    Many Thanks,


  2. Answer
    Deyan avatar
    2147 posts

    Posted 30 Nov 2009 Link to this post

    Hello Joe,

    Thanks for contacting us and for your questions. Currently, it is not possible to hide the whole default MDI menu since RadForm control internally recalculates its non-client area in order to display it and this happens each time a MDI child form is maximized.

    However, I can give you a possible workaround which simply hides the icon and the system buttons from the default MDI menu so that you can prevent your users from accessing them:

    this.FormElement.MdiControlStrip.MinimizeButton.Visibility = ElementVisibility.Collapsed;
    this.FormElement.MdiControlStrip.CloseButton.Visibility = ElementVisibility.Collapsed;
    this.FormElement.MdiControlStrip.MaximizeButton.Visibility = ElementVisibility.Collapsed;
    this.FormElement.MdiControlStrip.MaximizedMdiIcon.Visibility = ElementVisibility.Collapsed;

    Please note that in this way the default MDI menu will continue appearing, but the buttons will not be accessible. I hope this is helpful. You can write back anytime you need further assistance.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Joe
    Joe avatar
    8 posts
    Member since:
    Apr 2009

    Posted 30 Nov 2009 Link to this post

    Thanks for the prompt response Deyan.  Much appreciated.
  4. Taher
    Taher avatar
    21 posts
    Member since:
    Jun 2010

    Posted 03 Jan 2013 Link to this post

    Do you have any real solution now
    i use Q1 2012
  5. Peter
    Peter avatar
    1148 posts

    Posted 07 Jan 2013 Link to this post

    Hi Taher,

    Thank you for contacting us.

    This scenario is not very common and you should use the work-around proposed in this thread. I cannot propose an another solution to hide the Form's MDI menu.

    Thank you for the understanding.

    Kind regards,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top