Hey guys, I want that when I press the F2 button on the textbox, a new form shows up. I have KeyPreview setted to true, and I am using a KeyDown event, here is the code:
private void txtnumero_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.F2) {
fmrplantnum sfpn = new fmrplantnum();
sfpn.Show();
}
}
It doesn't works...