WinForm Menus and toolbars

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.