Winform Menus and toolbar controls

Source: Internet
Author: User

menustrip--Menu Tools

Will definitely appear on top of the form

Set Hotkey: input when editing (&F)
Set shortcut keys: Check menu items--Right-click Properties--shortcutkeys--set shortcut keys
Set Divider: Enter a minus sign (-) when entering

Right-click in the blanks to insert standard items

contextmenustrip--shortcut menu

Right-click menu: Can be bound on any one of the controls, add action shortcut keys

StatusStrip

Appears at the bottom of the window

Click on the "StatusStrip" control, you can see a new text box, progress bar, drop-down box, button, etc.

ToolStrip

Control is a highly configurable, extensible control that provides a number of properties, methods, and events that you can use to customize the appearance and behavior.

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. The flexibility of the ToolStrip control can be achieved by using multiple adjoint classes. Here are some of the most notable companion classes: important ToolStrip accompany class name descriptions MenuStrip Replace the MainMenu class and add functionality. StatusStrip replaces the StatusBar class and adds functionality. ContextMenuStrip replaces the ContextMenu class and adds functionality. 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.