Touch Support in Windows Forms Menu (Menus)

8 Jul 20261 minute to read

The menu control supports touch mode for the menu items and other visual elements. The components are also scaled automatically to render the menu items appropriately. This can be done by setting the EnableTouchMode property of the menu instance. The following code snippet shows touch mode being enabled in the menu.

By default, this property is set to false.

Menu disabled with touch mode

this.mainFrameBarManager1.EnableTouchMode = true;
Me.mainFrameBarManager1.EnableTouchMode = True

Menu enabled with touch mode

Touch selection

When the EnableTouchMode property is set to true, menu items can be selected via a general touch action. The image below shows menu items being selected with a touch action.

Menu items selected with touch action

Context menu

Tap and holding on the menu bar or a menu item displays the corresponding context menu for the menu bar. The screenshot below shows the context menu displayed when tapping and holding on the main menu bar.

Context menu in menu bar