Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I split a menu into multiple columns in WinForms?

A menu in an application of mine is going to contain too many items to be displayed in a single vertical row. Splitting it into 2 menus does not look a good solution as it would break UI semantics. Can I just set up one menu to be displayed with multiple columns (like Windows XP classic Start menu in case of vertical overflow)?

like image 283
Ivan Avatar asked Feb 12 '11 21:02

Ivan


People also ask

How do I create a menu in Windows Forms?

You can add menus to Windows Forms at design time by adding the MainMenu control and then adding menu items to it using the Menu Designer. Menus can also be added programmatically by adding one or more MainMenu controls to a form and adding MenuItem objects to the collection.

What control is use to include one or more menus on a Windows Form?

Use the StatusStrip control to display status for your Windows Forms applications. In the current example, menu items selected by the user are displayed in a StatusStrip control. From the Toolbox, drag a StatusStrip control onto your form. The StatusStrip control automatically docks to the bottom of the form.

What is MenuStrip?

MenuStrip is the top-level container that supersedes MainMenu. It also provides key handling and multiple document interface (MDI) features.

Is it possible to resize a control within the form design window if yes how?

Resize with the designerBy dragging either the right edge, bottom edge, or the corner, you can resize the form. The second way you can resize the form while the designer is open, is through the properties pane. Select the form, then find the Properties pane in Visual Studio. Scroll down to size and expand it.


1 Answers

How about creating some levels for the menu instead of splitting the menu vertically? Can't your options be grouped?

EDIT:

Don't know why I've been downvoted, but if you don't want to break the semantics of the menu and:

  • create unreadable menus of 50-ish items in length
  • or create such menus and then forcefully break them in columns

then you have to do something else, and grouping and levels are here to the rescue.

like image 63
Daniel Mošmondor Avatar answered Oct 05 '22 23:10

Daniel Mošmondor