Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

detect keypress c#


private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyCode == Keys.F1 && e.Alt)
    {
        //do something
    }
}

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #detect #keypress
ADD COMMENT
Topic
Name
5+4 =