private void returnToLoginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_LoginPage fLP = new frm_LoginPage(); //new instance of a login form is created

            fLP.Activate();                          //login form is activated
            fLP.Show();                              //login form is displayed
            this.Dispose();                          //current form is disposed
        }
        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //New instance for a login form
            frm_LoginPage tP = new frm_LoginPage();

            tP.Activate();
            tP.Show();
            this.Dispose();
        }
        private void frmPrincipalPanel_FormClosing(object sender, FormClosingEventArgs e)
        {
            //Create a new login form
            frm_LoginPage pP = new frm_LoginPage();

            pP.Activate();
            pP.Show();

            //Collect disposed form info
            System.GC.Collect();

            //Close the form event
            this.Hide();
        }