I need to make a shortcut key combination of three letters (Ctrl+L+I) I tried a lot to do so but no luck . I tried it in this way
private void MDIParent2HOME_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.Keycode==Keys.L && e.KeyCode == Keys.I)
{//login
Form1 chilform = new Form1();
chilform.MdiParent = this;
chilform.Show();
}
}
but this didn't work.
then I changed my key combination (ctrl+ALt+L) and tried it in same way
private void MDIParent2HOME_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.Alt && e.KeyCode == Keys.L)
{//login
{
Form1 chilform = new Form1();
chilform.MdiParent = this;
chilform.Show();
}
}
}
and I am wondering that worked perfect .I couldn't get the reason do anyone know about this behaviour of KeyDown event.Also help me if I can do the same with (ctrl+L+I) . Thanks