D
David
I have a custom control that contains a class that Inherits the panel
control. I am trying to catch a keydown event in this class and then
supress it from the rest of the control as well as the form that hosts
the control. The problem I am running into is that the form that hosts
the control will respond to the keydown event event.
Any ideas what I am missing?
Some source code to help:
public class PanelEditor : Panel {
... boring code omitted....
protected override void OnKeyDown(KeyEventArgs e) {
this.m_Text += (Keys)e.KeyValue;
this.m_CharCount++;
e.Handled =true;
base.OnKeyDown (e);
}
}
Again, this derived panel is part of a C# Windows Control Library.
-David
control. I am trying to catch a keydown event in this class and then
supress it from the rest of the control as well as the form that hosts
the control. The problem I am running into is that the form that hosts
the control will respond to the keydown event event.
Any ideas what I am missing?
Some source code to help:
public class PanelEditor : Panel {
... boring code omitted....
protected override void OnKeyDown(KeyEventArgs e) {
this.m_Text += (Keys)e.KeyValue;
this.m_CharCount++;
e.Handled =true;
base.OnKeyDown (e);
}
}
Again, this derived panel is part of a C# Windows Control Library.
-David