disabling [CTRL] + A: same question. much shorter. (13.2% Re-Post)

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I have a text box in which I want to enter special characters.

One of them is ă, which I would like printed when I press [Ctrl] + a.

I am able to trap the key combination with KeyDown and append ă to
the .Text property of my box. But immediately after that, the default
behavior of [Ctrl] + a kicks in and shifts the focus to that bar with
the arrow running down the left side of my form.

(What is that bar?!)

Is there any way I can disable this action for this text box?

Please let me know--I'm in a hurry to get this up and running--
wouldn't be such a pest otherwise :O)
Thanks!
Mike
 
I have a text box in which I want to enter special characters.

One of them is ?, which I would like printed when I press [Ctrl] + a.

I am able to trap the key combination with KeyDown and append ? to
the .Text property of my box. But immediately after that, the default
behavior of [Ctrl] + a kicks in and shifts the focus to that bar with
the arrow running down the left side of my form.

(What is that bar?!)

Is there any way I can disable this action for this text box?

Try setting KeyCode to 0 in the course of the KeyDown event.

John W. Vinson [MVP]
 
I have a text box in which I want to enter special characters.
One of them is ?, which I would like printed when I press [Ctrl] + a.
I am able to trap the key combination with KeyDown and append ? to
the .Text property of my box. But immediately after that, the default
behavior of [Ctrl] + a kicks in and shifts the focus to that bar with
the arrow running down the left side of my form.
(What is that bar?!)
Is there any way I can disable this action for this text box?

Try setting KeyCode to 0 in the course of the KeyDown event.

John W. Vinson [MVP]

Bingo :0) Thnx!
 
Back
Top