private void LoadTabTitle() { frmTitle frm = new frmTitle(); frm.TopLevel = false; frm.Visible = true; frm.FormBorderStyle = FormBorderStyle.None; frm.Dock = DockStyle.Fill; //tabControl.TabPages[4].Controls.Add(frm); }
private void btnLogin_Click(object sender, EventArgs e) { AcountBLL taikhoanbll = new AcountBLL(); int kq = taikhoanbll.KiemTraDangNhap(txtUserName.Text, txtPassword.Text); if (kq == 0) { MessageBox.Show("Sai ID hoặc Password !", "Thông báo"); } else { // show form Main frmMain frmnew = new frmMain(); frmnew.StatusLogin = 1; frmnew.ShowDialog(); frmTitle ftitle = new frmTitle(); // frmtitle.StatusLogin = ; ftitle.StatusLoginTitle = 1; } }