Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Sep 28, 1998



Application Security Testing: An Integral Part of DevOps

Better Auto-Propercase

The "Auto-Propercase Text Box at Entry" tip [VBPJ May 1997, page 63] has a simpler solution. The StrConv function can propercase any string. You can achieve the same effect with this code in the KeyUp event of a text box:

 Private Sub Text1_KeyUp(KeyCode As Integer, _
	Shift As Integer)
	Dim iCurPos As Integer
	iCurPos = Text1.SelStart
	Text1.Text = StrConv(Text1, vbProperCase)
	Text1.SelStart = iCurPos
End Sub
Manish Garg
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date