Shane wrote:
> The AcceptButton property seems to allow me to use the keyboard (directly
> onto my Display1.Text) but the enter button is stuck on the focused button
> (which of course changes everytime I click a button)
Yeah I just tried it myself and you're right, pressing Enter causes the
button with focus to be clicked. It is standard Windows behaviour
though.
I found the following link that mentions the problem:
http://www.informit.com/articles/art...?p=31218&rl=1:
"If the Cancel button on the form gets the focus, then pressing Enter
causes that button to be pressed and, consequently, the CancelIt method
to execute. In other words, the button receives the input before the
form does. Unfortunately, there's no easy way to get around this. Some
controls, such as the Button and RichTextBox controls, automatically
handle the Enter key press when they have the focus, before anything
else can execute. As a result, once you give the Cancel button focus
(by clicking it, or tabbing to it), pressing the Enter key always
causes the CancelIt method to execute."
Apparently one way to get around that is to create your own custom
button.....