private void btnOK_Click(object sender, EventArgs e) { MainMenuForm frm = new MainMenuForm(); frm.Show(); this.Hide(); }
private void rtbMessage_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { MainMenuForm frm = new MainMenuForm(); frm.Show(); this.Hide(); } }