caps

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to make a text box start to type caps at the users prompting. I have tried an input mask >aaaaaaaaaaaaaa;;" " and it does not work. It turns the text to all caps upon leaving the control. Any ideas?

seeker52
 
I need to make a text box start to type caps at the users prompting. I have
tried an input
mask >aaaaaaaaaaaaaa;;" " and it does not work. It turns the text to all caps upon
leaving the control. Any ideas?

Insert the following line of code into the textbox's "KeyPress" event procedure:

KeyAscii = Asc(UCase(Chr(KeyAscii)))

This will force upper case as the characters are entered.
 
Back
Top