private void Btn_Logout_Click(object sender, EventArgs e) { this.Hide(); frmCustomerProfileEntry o1 = new frmCustomerProfileEntry(); o1.Hide(); frmCustomerRegistration o2 = new frmCustomerRegistration(); o2.Hide(); frmUpdateCustomerDetails o3 = new frmUpdateCustomerDetails(); o3.Hide(); frmUpdateProfile o4 = new frmUpdateProfile(); o4.Hide(); frmCustomerOrders o5 = new frmCustomerOrders(); o5.Hide(); frmLogin frm = new frmLogin(); frm.txtUserName.Text = ""; frm.txtPassword.Text = ""; frm.ProgressBar1.Visible = false; frm.txtUserName.Focus(); frm.Show(); }
private void BtnTrackOrder_Click(object sender, EventArgs e) { frmCustomerOrders frm = new frmCustomerOrders(); frm.txtCustomerID.Text = lblUser.Text; frm.Show(); }