Beispiel #1
0
        private void HackyTextBox_KeyPress(object sender, KeyPressEventArgs e)
        {
            MyKeyPressEventArgs args = new MyKeyPressEventArgs(e.KeyChar);

            if (KeyPressed != null)
            {
                KeyPressed(this, args);
            }
            if (!args.Handled)
            {
                this.label1.Text += e.KeyChar.ToString();
            }
        }
Beispiel #2
0
 void hackyTextBox1_KeyPressed(object sender, MyKeyPressEventArgs e)
 {
     e.Handled = true;
     //MessageBox.Show(e.KeyChar.ToString());
 }