Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyDown form event not firing from RaiseEvent on Masked Edit box

Status
Not open for further replies.

hawkcg

Programmer
Dec 10, 2001
23
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top