tags:

views:

142

answers:

1

i have designed a gui calc , i have used flat buttons for thenumbers , to get the button click feel i have changed the mouse down color , but when i use the numpad keys to do calc iam able to stimulate the click event but how do i need to stimulate MouseDown event,

+5  A: 

Take the code that changes the button color from the mousedown event, refactor it into it's own method and call it from the keydown event as well.

barc0de
code that changes the button color from the mousedown event ?
guru