.NET has a BUG???
-
I'm not sure but, in _KeyPress event of a textbox, if you add the code "e.Handled = true;", it works fine. The event is cancelled. But in _KeyDown event it doesn't work.
private void t2_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { e.Handled = true; }
Is this a bug? or am I missing something? Radgar "Imagination is more important than knowledge." - Albert Einstein -
I'm not sure but, in _KeyPress event of a textbox, if you add the code "e.Handled = true;", it works fine. The event is cancelled. But in _KeyDown event it doesn't work.
private void t2_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { e.Handled = true; }
Is this a bug? or am I missing something? Radgar "Imagination is more important than knowledge." - Albert EinsteinYes, it's a bug, it has been fixed in .NET 2.0 Regards Senthil
-
Yes, it's a bug, it has been fixed in .NET 2.0 Regards Senthil