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

Hide default MDI menu

4 Answers 222 Views
Form
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 30 Nov 2009, 02:19 PM
Hi,

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,

Joe

4 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 30 Nov 2009, 03:08 PM
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,
Deyan
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.
0
Joe
Top achievements
Rank 1
answered on 30 Nov 2009, 03:24 PM
Thanks for the prompt response Deyan.  Much appreciated.
0
Taher
Top achievements
Rank 1
answered on 03 Jan 2013, 07:00 AM
Do you have any real solution now
i use Q1 2012
0
Peter
Telerik team
answered on 07 Jan 2013, 02:56 PM
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,
Peter
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Form
Asked by
Joe
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Joe
Top achievements
Rank 1
Taher
Top achievements
Rank 1
Peter
Telerik team
Share this question
or