System.Windows.Forms.ToolStripItem.Click Event

Occurs when the System.Windows.Forms.ToolStripItem is clicked.

Syntax

public event EventHandler Click

Remarks

The ToolStripItem.Click event passes an EventArgs to its event handler, so it only indicates that a click has occurred. If you need more specific mouse information (button, number of clicks, wheel rotation, or location), use the ToolStripItem.MouseDown and ToolStripItem.MouseUp events which pass a System.Windows.Forms.MouseEventArgs to the event handler.

A double-click is determined by the mouse settings of the user's operating system. The user can set the time between clicks of a mouse button that should be considered a double-click rather than two clicks. The ToolStripItem.Click event is raised every time a control is double-clicked. For example, if you have two event handlers for the ToolStripItem.Click and ToolStripItem.DoubleClick events of a System.Windows.Forms.Form, the ToolStripItem.Click and ToolStripItem.DoubleClick events are raised when the form is double-clicked and both methods are called. If an item is double-clicked that does not support the ToolStripItem.DoubleClick event, the ToolStripItem.Click event might be raised twice.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0