Initializes a MenuItem with a blank caption.
[Visual Basic] Overloads Public Sub New() [C#] public MenuItem(); [C++] public: MenuItem(); [JScript] public function MenuItem();
Once you have created an blank TBD using this constructor, you can use the properties and methods of the TBD class to specify the appearance and behavior of your MenuItem.
The following example creates a TBD using this version of the constructor.
[Visual Basic]
Public Sub CreateMyMenu()End Sub ' Create an empty menu item object. Dim MenuItem1 as MenuItem ' Intialize the menu item using the parameterless version of the constructor. Set MenuItem1 = New MenuItem ' Set the caption of the menu item. MenuItem1.Text = "&File" End Sub
MenuItem Class | MenuItem Members | System.WinForms Namespace | MenuItem Constructor Overload List