Subscriber portal
Gets which mouse button was pressed.
public: property MouseButtons Button { MouseButtons get(); }
One of the MouseButtons values.
The following code example handles the MouseDown event on a TextBox control so that clicking the right mouse button selects all the text in the control. This example requires that you have a form that contains a TextBox control named textBox1.
MouseButtonsClicksDeltaLocationMouseEventArgs ClassSystem.Windows.Forms Namespace