Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

visual basic: limit keypresses?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

visual basic: limit keypresses?

Old 04-12-06, 03:53 PM
DVD Talk Special Edition
Thread Starter
Join Date: Jan 2002
Posts: 1,796
Received 0 Likes on 0 Posts
visual basic: limit keypresses?

Hi all,
I've been banging my head against a wall for a couple of hours trying to figure this out...

I'm programming a task which requires people to view a series of words and then enter an estimate (from 1-100%) of the likelihood that they will be able to remember that word in the future. After a number is entered into the estimation textbox, the next word is shown, and the next estimate is made until the task is over. I need to figure out how to limit the number of times a person can hit ENTER during the estimation screen because when one does so more than once, the computer evidently stores those extra keypresses and automatically proceeds through the next several estimation screens without any user input (depending on the number of extra keypresses at the beginning). If this makes sense to you, I'd appreciate any help you can offer.
Old 04-12-06, 04:47 PM
X's Avatar
Join Date: Oct 1987
Location: AA-
Posts: 10,763
Likes: 0
Received 4 Likes on 3 Posts
You can probably use a keypress event to filter out extraneous keystrokes after a return.

Or maybe take a look at clearing the keyboard buffer just as the new entry screen asks for input.
Old 04-12-06, 05:05 PM
Senior Member
Join Date: Sep 2002
Posts: 916
Likes: 0
Received 0 Likes on 0 Posts
trap the keys in Form keypress or whatever the sub name is

Last edited by nodoubt; 04-12-06 at 05:07 PM.
Old 04-12-06, 09:20 PM
DVD Talk Special Edition
Thread Starter
Join Date: Jan 2002
Posts: 1,796
Received 0 Likes on 0 Posts
Thanks, guys. I've only been using VB for a few weeks, so I'm quite a novice. I greatly appreciate the help!

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.