ToolStripMenuItem Constructor (String^, Image^, EventHandler^)
.NET Framework (current version)
Initializes a new instance of the ToolStripMenuItem class that displays the specified text and image and that does the specified action when the ToolStripMenuItem is clicked.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- text
-
Type:
System::String^
The text to display on the menu item.
- image
-
Type:
System.Drawing::Image^
The Image to display on the control.
- onClick
-
Type:
System::EventHandler^
An event handler that raises the Click event when the control is clicked.
Use the ToolStripMenuItem to create a ToolStripMenuItem that displays both text and an image and that does the specified action when the ToolStripMenuItem is clicked.
.NET Framework
Available since 2.0
Available since 2.0
Show: