Results 1 to 3 of 3

Thread: Resolved - Select all on focus

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    88

    Resolved 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.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    VB Code:
    1. Private Sub Text1_GotFocus()
    2.    Text1.SelStart = 1
    3.    Text1.SelLength = Len(Text1.Text)
    4. End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    88

    Resolved

    thank you, brucevde

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width