H
Harry J. Smith
How can you detect a mouse double click on a text box? I tried the following
but it does not work.
private void richTextOut_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
// Process Mouse up in output TextBox
{
if (e.Clicks == 1) // if a single click (always == 1 ??)
{
SelectCom();
}
if (e.Clicks == 2) // if a double click (never == 2 ??)
{
SelectCom();
buttonDoIt_Click(sender, e);
}
}
-Harry
but it does not work.
private void richTextOut_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
// Process Mouse up in output TextBox
{
if (e.Clicks == 1) // if a single click (always == 1 ??)
{
SelectCom();
}
if (e.Clicks == 2) // if a double click (never == 2 ??)
{
SelectCom();
buttonDoIt_Click(sender, e);
}
}
-Harry