private void Button1_Click(object sender, EventArgs e) { this.Hide(); POS1 pos1 = new POS1(); pos1.Show(); }
public void Logbtn_Click(object sender, EventArgs e) { getData(); if (username1 != null && pass1 != null) { MessageBox.Show("Logged in successfully"); POS1 pos1 = new POS1(); this.Hide(); pos1.Show(); } else { MessageBox.Show("Username and password cannot be recognized", "Log in failed"); } }