Hello, I'm working on a set of forms inherited from the windows form. Within
these forms I often use keyevents to perform certain functions i.e.
'return/enter in a textbox' to submit a value to a routine, perform a search
or just to send a tab.
As I have no one button on the form that I would always want to fire a click
when I hit enter I have the acceptbutton set to nothing. This causes the
obvious problem of the windows default beep sounding everytime the key is
pressed.
I have attempted to change the inherited form, setting a default button to
be the accept button, this stopped the beep but also stopped the keyevent
from firing too.
I also set up a click event for this default button to send a processcmdkey
or processkeydialog call so that the keyevent would fire as part of the click
event, no luck though.
I have tried to override processcmdkey and processkeydialog both to no
avail, I cannot seem to capture the event the acceptbutton event hits.
My target is to stop the beep AND still process the keyevent, thank you in
advance for any help.