private void mainForm_Load(object sender, EventArgs e) { welcomeOutForm welcomeOutFormObj = new welcomeOutForm(); welcomeOutFormObj.TopLevel = false; formPanel.Controls.Clear(); formPanel.Controls.Add(welcomeOutFormObj); welcomeOutFormObj.Show(); // Eid = uidLabel.Text = lgf.Eid; }
private void signoutButton1_Click(object sender, EventArgs e) { if (lgf.Eid != " ") { welcomeOutForm welcomeOutFormObj = new welcomeOutForm(); welcomeOutFormObj.TopLevel = false; formPanel.Controls.Clear(); formPanel.Controls.Add(welcomeOutFormObj); welcomeOutFormObj.Show(); } }