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