Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LCase and UCase keypress

Status
Not open for further replies.

Gimly

Programmer
Jan 5, 2003
26
ZA
I want the first letter in the textbox to be a UCase and the others LCase I know the code that I have written here is only for LCase, how do I combine the UCase code with the LCase code.

If KeyAscii >= 65 And KeyAscii <= 90 Then
KeyAscii = KeyAscii + 32
Exit Sub
Else
End If

Any help will be greatly appreciated

Regards
Gimly
 

Why don't you use the lost focus event and ...
[tt]
MsgBox StrConv(&quot;this is a test.&quot;, vbProperCase)
[/tt]
where &quot;this is a test.&quot; is the contents of your textbox.

Good Luck

 
Thanl you for your reply, it is much appreciated. I will definately look into it.

Thank you
Gimly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top