private void FORM_MAIN_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { // Your logic here.... FORM_LOGIN form = new FORM_LOGIN(); form.ShowDialog(); } }
private void tool_login_Click(object sender, EventArgs e) { FORM_LOGIN FORM = new FORM_LOGIN(); FORM.ShowDialog(); }