Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            panel2.Controls.Clear();

            Localizar entrada = new Localizar();

            this.Invoke((MethodInvoker) delegate() {
                panel2.Controls.Add(entrada);
                entrada.Focus();
            });
        }
Exemple #2
0
        private void KeyPressCustom(char keyChar)
        {
            if (keyChar == (char)113 && keyChar.ToString() == Keys.F2.ToString())
            {
                btnEntrada.PerformClick();
            }
            else if (keyChar == (char)114 && keyChar.ToString() == Keys.F3.ToString())
            {
                btnSaida.PerformClick();
            }
            else if (keyChar == (char)121 && keyChar.ToString() == Keys.F10.ToString())
            {
                panel2.Controls.Clear();

                Localizar entrada = new Localizar();
                this.Invoke((MethodInvoker) delegate() {
                    panel2.Controls.Add(entrada);
                    entrada.Focus();
                });
            }
        }
Exemple #3
0
        private void KeyDownCustom(Keys keyCode)
        {
            if (keyCode == Keys.F2)
            {
                btnEntrada.PerformClick();
            }
            else if (keyCode == Keys.F3)
            {
                btnSaida.PerformClick();
            }
            else if (keyCode == Keys.F10)
            {
                panel2.Controls.Clear();

                Localizar entrada = new Localizar();
                this.Invoke((MethodInvoker) delegate() {
                    panel2.Controls.Add(entrada);
                    entrada.Focus();
                });
            }
        }