Пример #1
0
        private void container_Load(object sender, EventArgs e)
        {
            loginform lg = new loginform(this);

            lg.TopLevel = false;
            mainpnl.Controls.Clear();
            mainpnl.Controls.Add(lg);
            lg.Show();
        }
Пример #2
0
        private void signoutlbl_Click(object sender, EventArgs e)
        {
            userinfo.loggedin = false;
            userinfo.admin    = false;
            userinfo.email    = "";
            userinfo.username = "";
            this.Close();
            MessageBox.Show("Logged out successfully.\n\nPlease Login to continue.", "Success!");
            loginform lg = new loginform(cn);

            lg.TopLevel = false;
            cn.mainpnl.Controls.Clear();
            cn.mainpnl.Controls.Add(lg);
            lg.Show();
        }