Example #1
0
        private void btnlogout_Click_1(object sender, EventArgs e)
        {
            phome.Visible    = false;
            lblmsg.Text      = "";
            txtfilename.Text = "Name";
            txtpath.Text     = "Path";
            Addstu stu = new Addstu();

            this.Close();
            Microsoft.Win32.Registry.CurrentUser.DeleteSubKey("MyRegKey");
        }
 private void loginToolStripMenuItem3_Click(object sender, EventArgs e)
 {
     try
     {
         Addstu stu = new Addstu();
         stu.MdiParent = this;
         stu.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }