Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

All - force lower case as keys are entered


'in the KeyPress event of the control

'force lower case
KeyAscii = Asc ( Lcase ( Chr (KeyAscii)))

'force upper case
KeyAscii = Asc ( Ucase ( Chr (KeyAscii)))