Stefan said:
oh sorry!
ok, now my problem in english:
is there a way the difference both enter-keys in code? one on the num-pad
and the other.
if yes: is it possible to change one enter-event to an other value?
If what you want is to have both keys behave the same, it looks like the
Keys enumeration already does that for you; either button press will
return the value 13 (decimal); just override or attach a delegate to the
KeyDown event.
Carlos pointed out the ProcessKeyMessage method; override that and you
have access to the raw WM_KEYDOWN event data, where bit 24 shows if the
extended keys were touched: Message.LParam contains 0x11c0001 if it's
the keypad, and 0x1c0001 if it isn't.
The Forms.Message parameter is ByRef, you could probably change the
value of LParam there and just do a "Return MyBase.ProcessKeyMessage(m)"
to let the control do whatever it does after you've changed your data.
Macht mir nix aus wenn Du Deutsch hier reden willst. Es gibt doch ein
wenig hier, die Dich verstehen koennen, auch wenn wir keine Umlauttasten
auf der Tastatur besitzen.
Rob, who had to look up the gender article for "Tastatur" and still
isn't sure he got it right...