-
March 3rd, 2012, 05:12 AM
#1
Button NOT reacting on Enter keypress
How do I prevent a button, that is the only one on the form, gets activated by a press on the Keyb. Enter ?
The reason is a little complicated to explain, but thoose familiar with barcode reader input will probably know why )
-
March 3rd, 2012, 11:34 AM
#2
Re: Button NOT reacting on Enter keypress
Windows form or web form?
Also your question is a little difficult to follow.
Is the button code being activated now and you want to stop it from doing so or is the button code not being activated and you would like it to run on enter key press?
Always use [code][/code] tags when posting code.
-
March 3rd, 2012, 05:38 PM
#3
Re: Button NOT reacting on Enter keypress
Originally Posted by Pivskid
How do I prevent a button, that is the only one on the form, gets activated by a press on the Keyb. Enter ?
The form's AcceptButton property specifies which button is 'clicked' when the return key is pressed. Setting this to null should work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|