What is wrong about this script?
There is no error but when i pressed F6, happens nothing...
Note : Form KeyPreview = true
Code:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.F6)
{
MessageBox.Show("Succesful");
}
}
Note : Form KeyPreview = true