form.keypreview to uppercase a-z chars

Hi,
I have a textbox on a form I would like uppercased as its being typed. I tried 2 solutions, the first one being obvious - put This.Value=upper(This.Value) inside the interactiveChange event of the textbox. This didn't work because it results in the cursor being positioned at the beginning of the textbox.
So now I'm using a form's Keypress property to uppercase keystrokes thinking that foxpro will then pass the keystroke event on to the object in the form that generated the keypress, but that doesn't seem to be happening.
Any suggestions?
Thanks!
Andre
andremaraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jrbbldrConnect With a Mentor Commented:
Your question was already answered in the other VFP forum where you posted.

To repeat that individual's answer....
     set the textbox's Format property to ! (that's an exclamation mark)

Good Luck
0
 
Olaf DoschkeSoftware DeveloperCommented:
.T.
0
 
andremaraAuthor Commented:
Thanks! I did find this in the vfp help after a little digging, and I appreciate your posting over here - I'll have to get a little more familiar with the EE interface.
0
All Courses

From novice to tech pro — start learning today.