Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CheckBox Up/Down intercept

Posted on 1998-12-17
1
Medium Priority
?
137 Views
Last Modified: 2013-12-26
The CheckBox control captures Up and Down keypresses and
treats them as BackTab and Tab.  I want to capture Up and
Down keypresses myself, but they don't make it through
to a KeyDown event procedure.

Does anyone know if/how I can pursuade a checkbox to leave
Up & Down keypresses alone?
(I'm working with VB 5 pro)
0
Comment
Question by:menicoll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
myqlG earned 200 total points
ID: 1489059
Since windows itself is intercepting the arrow keys and setting
focus elsewhere the only way you can capture that is with a
msghook of some kind.. and not natively from VB.
However.. a really really bad workaround (and IM almost
ashamed to post it here) is:
1 make a variable public as integer (k)
2. in keydown set k=0 then k=keycode
3 on lostfocus..check to see what k=
if k=some num (use a select case) then it wasnt because
of arrow keys..
if k=0 THEN it MAY have been an arrow key.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question