예제 #1
0
 private void MainEvent_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.F10)
     {
         frm_Login login = new frm_Login();
         login.MdiParent = this;
         this.btn_Registration.Visible = false;
         login.Show();
     }
     if (e.KeyData == Keys.F6)
     {
         frm_Login login = new frm_Login();
         login.MdiParent = this;
         login.Controls["lblEventId"].Visible  = false;
         login.Controls["cmb_EventId"].Visible = false;
         this.btn_Registration.Visible         = false;
         login.Show();
     }
 }
예제 #2
0
        private void MainEvent_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F10)
            {
                frm_Login login = new frm_Login();
                login.MdiParent = this;
                this.btn_Registration.Visible = false;
                login.Show();
            }
            if (e.KeyData == Keys.F6)
            {
                frm_Login login = new frm_Login();
                login.MdiParent = this;
                login.Controls["lblEventId"].Visible = false;
                login.Controls["cmb_EventId"].Visible = false;
                this.btn_Registration.Visible = false;
                login.Show();

            }
        }