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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange behavior on command buttton keypress event

Status
Not open for further replies.

ChewDoggie

Programmer
Mar 14, 2005
604
US
G'morning,

I have a command button, that, when the focus is moved to it (I can see that the button has the focus), and press the 'Enter' key on my keyboard, the keydown, keypress or keyup events don't fire. I've set breakpoints in each and no breakpoints are hit.

Anyone have any ideas about this?

Thanks,

Chew


10% of your life is what happens to you. 90% of your life is how you deal with it.
 
Nevermind...the previous programmer put the code for the button in the "MouseDown" event. When I moved that code to the "Click" event, everything worked with the keyboard.

Strange days indeed.

Chew

10% of your life is what happens to you. 90% of your life is how you deal with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top