Search code examples
c#winformsmouseevent

Triple Mouse Click in C#?


In MS-Word Mouse Click events are used as:

Single Click - placing Cursor
Double Click - Selects Word
Triple Click - Selects Paragraph

In C# I can handle single and double mouse click events but I want to handle a Triple Mouse Click event in C# Windows TextBox.

Example:

void textbox1_TripleClick()
{
    MessageBox.Show("Triple Clicked"); 
} 

Solution

  • Have a look at this: Mousebuttoneventargs.clickcount

    That should cover it I suppose.