Menus and toolbars:
1. MenuStrip: Top Menu
Highest priority, default at top
(1) Split line: A, hit a minus sign "-"
b, right-click Insert Separator
(2) Click event: Each item can be used as a button, you can set the Click event
(3) Shortcut key: Each item right-click the bottom of the property to set the shortcut key (Shortcutkeys)
Shortcut keys work regardless of whether the option is hidden (visible-false) or menu-hidden
(4) Quick to build the top menu method: Right click, choose Insert Standard Item, Basic top menu is ready, need to add or delete can be as needed
(5) The menu bar is hidden and cannot be found, or too many cannot be found, you can find it by name at the top of the property
2. ContextMenuStrip: Right-click menu
(1) Click on the form, inside the attribute: behavior-contextmenustrip-Select Bind ContextMenuStrip1
(2) Each control can have its own separate right-click menu
3. Statusstript: Bottom Menu
Display at the bottom of the form, click the down arrow, which has four properties
(1) lable, same as lable in common controls
(2) ProgressBar progress bar
(3) DropDownButton can enter text, you can insert a picture
Properties: Appearance-displaystyle-image display only picture None Nothing shows text only displays the literal and image display text and pictures
(4) SplitButton is similar to DropDownButton function
The only difference is that DropDownButton is a button that directly clicks to show the contents. SplitButton must click on the small arrow to display the contents
4. ToolStrip: Tool bar
All the buttons inside can be added and used normally
5. ToolStripContainer: Tool bar Container
You can drag the tool bar in the container to place any position, you can put more than one tool bar to arrange
WinForm Menus and toolbars