Results 1 to 3 of 3

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

Threaded View

  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

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