change key behavior? arrows & ctrl +...

M

Mike

Hi all,
I want to make some changes to the way my form behaves when certain
keys and key combinations are pressed:
(A) I do not want the arrow keys to move between fields and records. I
only want them to move the cursor in my text boxes.
(B) I’d like to use the following key combinations to print special
characters to my text boxes:
[CTRL] + [a] --> â
[CTRL] + [ALT] + [a] --> ă
[CTRL] + --> î
[CTRL] + --> ÅŸ
[CTRL] + [t] --> ţ
Also, holding [SHIFT] should get me the corresponding capital letter.
Now, I know for the most part how to do this with the KeyDown and
KeyPress events of the text boxes, but I was wondering:
1. For (A), is there a more “standard†way? Like a
ChangeFieldOnArrow binary property?
2. The last time I tried to do this was in Excel VBA where [CTRL]
+ [a] selects all the text in a text box by default. So it would pring
the character and then select all the text. In Access, [CTRL] + [a]
highlights that bar that runs down the left side of my form. (What is
that bar?!) Can I disable this only for the text boxes where I want to
print those special characters? What’s the best way?
3. Okay, I can trap [CTRL], [ALT], and [SHIFT] combinations with
KeyDown, but what about other key combinations? What about key
sequences? Like [CTRL] + `, e --> è?
Any help would be greatly appreciated. Thanks!
Mike
 

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