Friday, September 25, 2009

Tips and Tricks Visual Basic 6.0 Mark All Characters In TextBox


'Add 1 TextBox to your form (named Text1)
'When the user will press on the TextBox, all the characters in the TextBox will be marked.
'Insert the following code to your form:

Private Sub Text1_GotFocus()
Text1.SelStart = 0
Text1.SelLength = Len(Text1)
End Sub

1 comments:

Unknown on September 25, 2009 at 9:17 AM said...

sicabayans.blogspot.com
sicabayans.net

10 imp 3 click

Your Ad Here