コード例 #1
0
        private void btnlogout_Click(object sender, EventArgs e)
        {
            panel6.Visible = true;
            phome.Visible  = false;
            lblmsg.Text    = "";
            Microsoft.Win32.Registry.CurrentUser.DeleteSubKey("MyRegKey");
            Addpro pro = new Addpro();

            this.Close();
        }
コード例 #2
0
 private void programManagerToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         Addpro pro = new Addpro();
         pro.MdiParent = this;
         pro.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }