private void btnCheckIn_Click(object sender, EventArgs e) { pbCheckIn.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; Check_In1.frmCheckIn checkIn = new Check_In1.frmCheckIn(); checkIn.Show(); this.Visible = false; }
private void btnCheckInAgain_Click(object sender, EventArgs e) { Check_In1.frmCheckIn checkIn = new Check_In1.frmCheckIn(); checkIn.Show(); string[] stName = cboName.Text.Split(' '); checkIn.txtfirstname.Text = stName[0]; for (int i = 1; i < stName.Length; i++) { checkIn.txtlastname.Text = checkIn.txtlastname.Text + stName[i]; } checkIn.cbsex.Text = txtSex.Text; checkIn.txtage.Text = txtAge.Text; checkIn.txtaddress1.Text = txtAddress.Text; checkIn.txtcontactnumber.Text = txtContact.Text; this.Visible = false; }