Example #1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == (Keys.Control | Keys.B))
            {
                txtUsername.Text = "admin";
                txtpassword.Text = "admin123";
                return(true);
            }

            if (keyData == (Keys.Control | Keys.C))
            {
                txtUsername.Text = "cashier";
                txtpassword.Text = "cashier123";
                return(true);
            }

            if (keyData == (Keys.Control | Keys.R))
            {
                txtUsername.Text = "registrar";
                txtpassword.Text = "registrar123";
                return(true);
            }

            if (keyData == (Keys.Control | Keys.Alt | Keys.S))
            {
                frmSetting set = new frmSetting();
                set.Show();
                return(true);
            }

            if (keyData == (Keys.Enter))
            {
                button3.PerformClick();
                return(true);
            }

            return(base.ProcessCmdKey(ref msg, keyData));
        }
Example #2
0
        private void button10_Click(object sender, EventArgs e)
        {
            frmSetting set = new frmSetting();

            set.ShowDialog();
        }
Example #3
0
        private void SettingsBtn_Click(object sender, EventArgs e)
        {
            frmSetting setting = new frmSetting();

            setting.ShowDialog();
        }