caps

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
 
B

Bruce M. Thompson

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.
 

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