Two Quick Questions - Tab Key and Radio/Check Box Controls

J

Joe Keller

1) It appears that trapping of the "Tab" keyboard key is not supported in
any of a form's key events (i.e. KeyDown and KeyPress). Is there any way to
override this behavior to trap for the "Tab" key being pressed?

2) When a radio button or check box has focus, I want to display a visual
cue to the user for which control has the focus. Is there a way to set the
color of the font for a check box or radio button control? If not, could I
subclass it somehow and change the color myself?

Thanks!

Joe
 
C

Chris Tacke, eMVP

1. Can be accomplushed using a system hook. It's been discussed heavily, so
check the archives for details.
2. Unfortunately most intrinsic controls are sealed, so you'll have to
probably do something more creative, like manually drawing a border around
it.

-Chris
 

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

Similar Threads

Tab key 2
Key Events in combo and hardware keys 3
Trap Return key 3
Tab Key 1
Smartphone: ListView + Back Key = No KeyPress? 1
Tab Key not working with SP2 1
Windows Form Group Box 3
DataGrid and TAB key 1

Top