Checkbox Behavior

S

Scaparoo

Is there a way to check and uncheck a checkbox (created by using form
control) by hitting the spacebar as opposed to having to click the
box? Thanks!
 
G

GS

Is there a way to check and uncheck a checkbox (created by using form
control) by hitting the spacebar as opposed to having to click the
box? Thanks!

Hitting the Spacebar while the checkbox has focus should toggle its
value. Otherwise, you'll have to trap key events. In this case I don't
advise trapping the spacebar since that's used for typing text as a
word separator and so makes it a bad choice. A better approach would be
to record macros for clicking each checkbox, then assign a keyboard
combo to each macro. (ie: Alt+1 for checkbox1, Alt+2 for checkbox2,
...and so on)

--
Garry

Free uenet access at http://www.eternal-september.org
Classic VB Users Regroup
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top