ToolStripButton Constructor (String^, Image^, EventHandler^)

 

Initializes a new instance of the ToolStripButton class that displays the specified text and image and that raises the Click event.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
ToolStripButton(
	String^ text,
	Image^ image,
	EventHandler^ onClick
)

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.

Use this constructor to create a ToolStripButton that displays both an image and text and raises the Click event when clicked.

.NET Framework
Available since 2.0
Return to top
Show: