Once ContextMenuStripEx control is added, click Type Here for adding the TextBox. It is used to get input from the user at runtime. The TextBox control is used for editable text. Invokes the Items Collection Editor and lets you add ToolStripItems to be displayed when the item is clicked. Specifies the ToolStripDropDown to be shown when the item is clicked. Sets the text for the tooltip when AutoToolTip is set to false. When set to false, will display the text set in the ToolTipText property. When set to true, will display the text set in the Text property as the item's tooltip. You can modify the ShortcutKey string, that is set by using the ShortcutKeyDisplayString property. The shortcut key to be displayed for a menu item. User can access the particular menu item using this shortcut key specified in ShortcutKeys property. Indicates whether a shortcut key should be displayed in the menu item. They can be Checked, Unchecked or Indeterminate. This image will be displayed only when the ContextMenuStripEx.ShowImageMargin is true and DisplayStyle is Image or ImageAndText. This will be displayed only if ContextMenuStripEx.ShowCheckMargin property is set to true. Indicates whether the item is in the checked state. The below table will explain the properties of menu item, Please refer the link “Getting Started” section for adding MenuItem to the ContextMenuStripEx control. The MenuItem supports all the general properties of a ToolStripItems. Represents a selectable option displayed on a MenuStrip or ContextMenuStrip. The following are the ToolStripItems which can be added as menu items to the ContextMenuStripEx control. ToolStripItem Types in WinForms ContextMenuStrip (ContextMenuStripEx)
0 Comments
Leave a Reply. |