This is something that has been killing me all morning. It seems like the fix would be simple, but seems to escape me.
I have a form which has a form event based on the KeyDown event.
Public Event KeyDown(KeyCode as Integer, Shift as Integer)
I have textbox and masked edit controls on the form. The form property KeyPreview is true and when I press a key in the textboxes, the form event runs followed by the control event. However, when I do the same in the masked edit box, only the control event runs. Even when I specifically try to RaiseEvent on it, the form event doesn't do anything. Any suggestions?
Thanks
Hawk
I have a form which has a form event based on the KeyDown event.
Public Event KeyDown(KeyCode as Integer, Shift as Integer)
I have textbox and masked edit controls on the form. The form property KeyPreview is true and when I press a key in the textboxes, the form event runs followed by the control event. However, when I do the same in the masked edit box, only the control event runs. Even when I specifically try to RaiseEvent on it, the form event doesn't do anything. Any suggestions?
Thanks
Hawk