DoubleClick Event

[C#] Call Keydown Event From A Doubleclick Event

private void txtProduct_KeyDown(object sender, KeyEventArgs e)  
{  
    if(e.KeyCode == Keys.Return)  
    {
        DoSomething(); 
    }  
}  

private void listProduct_DoubleClick(object sender, EventArgs e)
{
    DoSomething();
}  

private void DoSomething()
{
    // Do Something
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here