// write admin on text box private void button1_Click(object sender, EventArgs e) { if (adminname.Text.Equals("admin")) { rentalSection obj = new rentalSection(); obj.Show(); } }
private void returnBack_Click(object sender, EventArgs e) { this.Visible = false; rentalSection obj = new rentalSection(); obj.Show(); obj.cus_id.Text = "" + CusID; obj.mov_id.Text = "" + VidID; }