Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Go Back  Xtreme Visual Basic Talk > > > Problem with Keypress Hold and Multiple keypress


Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2011, 04:44 PM
lilocrane lilocrane is offline
Newcomer
 
Join Date: Dec 2010
Posts: 3
Default Problem with Keypress Hold and Multiple keypress


I'm having a problem of what function to use for our project...

we need to control the device using keyboard, but if i use keypress the problem is the output is continuous even after releasing the key. What i want is when i press a key it would produce a continuous output but when i release the key it would stop. also, i'd like to create multiple keystokes, is it possible??
Reply With Quote
  #2  
Old 02-18-2011, 07:05 PM
webbone's Avatar
webbone webbone is offline
Hydrogen Powered

Administrator
* Expert *
 
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090
Default

Have you looked at the KeyDown and KeyUp Events on MSDN?

Depending on what your interface looks like you might need to set the KeyPreview property on your Form to be True and handle the events accordingly.
__________________
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
 
Problem with Keypress Hold and Multiple keypress
Problem with Keypress Hold and Multiple keypress
 
-->