Results 1 to 3 of 3

Thread: *solved* selecting all of a multi line text box?

  1. #1

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    *solved* selecting all of a multi line text box?

    VB Code:
    1. Private Sub lblSelectAll_Click()
    2.     Me.txtIPCheck.SetFocus
    3.     SendKeys "{Home}+{End}"
    4. End Sub

    Now that will select a normal 1 line text box.. correct?

    I want to be able to select a multi line text box,

    how do i do this?



    I guess its

    VB Code:
    1. Private Sub lblSelectAll_Click()
    2.     Me.txtIPCheck.SetFocus
    3.     SendKeys "{*control key*}+{Home}+{End}"
    4. End Sub

    only i dont know what the vb code for the control key is ?

    Tnx
    Last edited by wpearsall; Sep 28th, 2002 at 03:26 PM.
    Wayne

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    VB Code:
    1. txtIPCheck.SelStart = 1
    2. txtIPCheck.SelLenght = Len(txtIPCheck.Text)
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    thanks
    Wayne

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