|
-
Oct 26th, 2004, 12:52 AM
#1
Thread Starter
Lively Member
Resolved - Select all on focus
I need to select all (highlight) in a textbox when it is on focus, so that new value replaces the existing value if changed.
basically I am looking for double click effect during on focus event.
if it is not changed and out of focus, the original shall remain as it is.
any help pl.
Last edited by santosh66; Nov 19th, 2004 at 03:53 AM.
-
Oct 26th, 2004, 01:05 AM
#2
VB Code:
Private Sub Text1_GotFocus()
Text1.SelStart = 1
Text1.SelLength = Len(Text1.Text)
End Sub
-
Nov 19th, 2004, 03:51 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|