Ivan
Ivan

Reputation: 64227

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)?

Upvotes: 7

Views: 1634

Answers (2)

Gent
Gent

Reputation: 2685

Yes you can change your approach a bit and use a split container, using the left panel as the menu and the right panel as the content panel.

This would allow you the flexibility to arrange your menu buttons in anyway you like

Upvotes: 0

Daniel Mošmondor
Daniel Mošmondor

Reputation: 19986

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.

Upvotes: 3

Related Questions