private void checkOutToolStripMenuItem_Click(object sender, EventArgs e) { Form3 f3 = new Form3(); f3.ShowDialog(); f3.Focus(); }
private void button1_Click_1(object sender, EventArgs e) { if (txtKTP.Text == "" && txtSIM.Text == "") { MessageBox.Show("Mohon lengkapi data diatas!", "Data tidak lengkap"); } else { if (txtNama.Text == "" || txtIDTamu.Text == "" || txtAlamat.Text == "" || txtTelp.Text == "") { MessageBox.Show("Mohon lengkapi data diatas!", "Data tidak lengkap"); } else { Form3 f3 = new Form3(); f3.ShowDialog(); f3.Focus(); } } }