private void button1_Click(object sender, EventArgs e) { if (this.textBox1.Text == "reception123" && this.textBox2.Text == "123") { Form newform = new ReciptionDashboard(); newform.Show(); } else { MessageBox.Show("Invalid credentials", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { Form newform = new ReciptionDashboard(); newform.Show(); }