private void gohomeButton_Click(object sender, EventArgs e) { this.Hide(); welcome wc = new welcome(); wc.Show(); }
private void button1_Click(object sender, EventArgs e) { this.Hide(); welcome wel = new welcome(); wel.Show(); }
private void logIn_Click(object sender, EventArgs e) { signing s = new signing(); s.userName = userNameTextBox.Text; s.password = pswdTextbox.Text; Connection cn = new Connection(); DataTable dt = new DataTable(); dt = cn.Select(s); if (dt.Rows.Count > 0) { this.Hide(); welcome wel = new welcome(); wel.Show(); } else { MessageBox.Show("Invalid userName and Password"); } }