I've got a "Home" screen with 9 buttons. All text properties for the buttons are set like: &Returns so that the R is underlined in the display.
So when I press R at home screen I want the Returns screen to load. This is what I have:
private void frmHome_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.R)
{
frmReturns R = new frmReturns(empid);
R.Show();
this.Hide();
e.Handled = true;
}
}
But that does absolutely nothing. Can someone please help?