private void logOutToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); frmCategory o1 = new frmCategory(); o1.Hide(); frmSubCategory o2 = new frmSubCategory(); o2.Hide(); frmProduct o3 = new frmProduct(); o3.Hide(); frmRegisteredUsersDetails o4 = new frmRegisteredUsersDetails(); o4.Hide(); frmRegistration o5 = new frmRegistration(); o5.Hide(); frmStockRecord o6 = new frmStockRecord(); o6.Hide(); frmCustomersRecord o7 = new frmCustomersRecord(); o7.Hide(); frmSuppliersRecord o8 = new frmSuppliersRecord(); o8.Hide(); frmProductsRecord2 o9 = new frmProductsRecord2(); o9.Hide(); frmSalesRecord2 o10 = new frmSalesRecord2(); o10.Hide(); frmLogin frm = new frmLogin(); frm.Show(); frm.txtUserName.Text = ""; frm.txtPassword.Text = ""; frm.ProgressBar1.Visible = false; frm.txtUserName.Focus(); }
private void stockToolStripMenuItem2_Click(object sender, EventArgs e) { frmStockRecord frm = new frmStockRecord(); frm.Show(); }