CONTROLLING KEYS

Now this seems to be a very serious problem. I'm trying to control all keys in D3. That means I have to catch all the keys that were pressed in my program (and that is eg. ScrollLock, ESC, Tab etc.) but not to let, if don't want to, to know the program that the key was pressed. For instance if I press TAB I want do some action and I don't want the program to skip to another TabEnbled component? Please, help me. What should I do? Is it possible? I hope so.
Thanks Jakub.
jakubklosAsked:
Who is Participating?
 
icampbe1Connect With a Mentor Commented:
Set the forms 'KeyPreview' property to TRUE.   Then you can perview the and process the keys you want.  The help is pretty clear on this.
0
 
jakubklosAuthor Commented:
I'll give it a go and then grade.
0
 
jakubklosAuthor Commented:
It sounds great now if I read it again, I grade it with excellent.
0
 
jakubklosAuthor Commented:
It didn't exactly fix the problem. I need for example, if a component is focused and I press TAB it doesn't move to another component and I get this request. You know what I mean? Looks like I need to do some key handler of the component (but I've never done that yet). What do you think?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.