WinForm Menus and toolbar controls

Source: Internet
Author: User

1. contextmenustrip--Right-click menu

You can bind to any control, add an action shortcut, and set multiple layers

Each line corresponds to a button, input-can add split line

2. menustrip--Menu

Highest priority, must appear at the top of the form

Set shortcut keys: Check menu items--Right-click Properties--shortcutkeys--set shortcut keys

Right-click to insert Standard items

3. statusstrip--Bottom status bar

Appears at the bottom of the window

The controls you add are similar to the normal label, button, and so on

4. toolstrip--Toolbar

Control is a highly configurable, extensible control that provides a number of properties, methods, and events that can be used to customize the appearance and behavior to work with ToolStripContainer, where users can adjust their own location

Dock Gets or sets which edge of the parent container the ToolStrip is docked in.

Allowitemreorder Gets or sets a value that indicates whether drag-and-drop and item reordering are handled specifically by the ToolStrip class.

Layoutstyle Gets or sets a value that indicates how ToolStrip lays out its items.

Overflow Gets or sets whether to attach ToolStripItem to ToolStrip, attach to Toolstripoverflowbutton, or let it float between the two.

Isdropdown gets a value that indicates whether the ToolStripItem displays the other items in the drop-down list when you click ToolStripItem.

Overflowbutton gets the ToolStripItem, which is an overflow button with overflow ToolStrip enabled.

Renderer Gets or sets a toolstriprenderer that is used to customize the appearance and behavior of the ToolStrip (appearance).

Rendermode Gets or sets the drawing style to apply to ToolStrip.

Rendererchanged raised when the Renderer property is changed.

5, ToolStripContainerProvides a container in which the form has a panel on each side, and controls in the panel can be arranged in a variety of ways.

WinForm Menus and toolbar controls

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.