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

MDI Windows

4 Answers 75 Views
Menu
This is a migrated thread and some comments may be shown as answers.
avner
Top achievements
Rank 1
avner asked on 25 Feb 2008, 05:19 AM
Hi,

Some questions re WinForms Q2 2007 menustrip.

1. Is there a away to change the order of menu items using the designer?

2. Is there a dedicated menu designer somewhere? I.e. not the inline designer

3. Is there an easy way to show all opened MDI windows in the Window menu?


thanks

4 Answers, 1 is accepted

Sort by
0
avner
Top achievements
Rank 1
answered on 25 Feb 2008, 05:51 AM
I've made some progress.. I discovered the visual style builder - however I can't launch it from the smart tag on the menustrip.
0
Jack
Telerik team
answered on 25 Feb 2008, 12:36 PM
Hello avner,

Thank you for contacting us. I will try to answer your questions here:
  1. You are able to change the order of menu items by using the Items collection editor
    1. Click on the menu
    2. Select the smart tag
    3. Choose the Edit items option
    4. Use the up and down arrows to reorder menu items
    1. Click on the menu
    2. Select the smart tag
    3. Choose the Edit items option
    4. Use the up and down arrows to reorder menu items
  2. RadMenu doesn't have a dedicated external designer.
  3. The simplest way to get all opened MDI windows is to iterate through the MdiChildren collection. Consider the sample snippet below:
this.radMenuItem2.Items.Clear(); 
foreach (Form form in this.MdiChildren) 
    this.radMenuItem2.Items.Add(new RadMenuItem(form.Text)); 
}  
 

I hope this helps. Do not hesitate to write us, if you need further assistance.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
avner
Top achievements
Rank 1
answered on 25 Feb 2008, 10:23 PM
Thanks for those answers. I couldn't access those smart tags, probably because I don't have a reference to Telerik.WinControls.UI.Design. After adding the reference I still couldn't.

Any ideas how I can bring back the smarttags without dropping a new menu onto my form?


regards,

Avner
0
Jack
Telerik team
answered on 26 Feb 2008, 09:32 AM
Hi avner,

Thank you for getting back to us.

Yes, the Telerik.WinControls.UI.Design assembly is needed by our controls in order to behave correctly at design time. This assembly must be added to the Global Assembly Cache (GAC). I suggest removing all references from your project, reinstalling the RadControls for Winforms suite and adding the references again.

I hope this helps. Let us know, if you need further assistance.

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
avner
Top achievements
Rank 1
Answers by
avner
Top achievements
Rank 1
Jack
Telerik team
Share this question
or