Click to See Complete Forum and Search --> : Caps Lock


dar1
October 4th, 2001, 02:47 PM
How can I disable the use of the caps lock and the shift keys in a text box keypress event
I need to be able to control how the user inputs text in a text box by code

DSJ
October 4th, 2001, 02:54 PM
Assuming you want all lowercase...


private Sub Text1_KeyPress(KeyAscii as Integer)
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub

dar1
October 4th, 2001, 03:00 PM
I will give it a go thanks
dar1