Results 1 to 3 of 3

Thread: Textbox slected

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,462

    Textbox slected

    After setting some parameters a value is assigned to a text box e.g
    Code:
    Text1= "Some text"
    Text1.setFocus
    text1.SelLength = Len(Text1)
    The idea is the user can add text into the textbox with the cursor ready in the right place.
    But - can it be done without the text being highlighted ?

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: Textbox slected

    Quote Originally Posted by AlexanderBB View Post
    After setting some parameters a value is assigned to a text box e.g
    Code:
    Text1= "Some text"
    Text1.setFocus
    text1.SelLength = Len(Text1)
    The idea is the user can add text into the textbox with the cursor ready in the right place.
    But - can it be done without the text being highlighted ?

    Thanks.
    Use .SelStart insead of .SelLength

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,462

    Re: Textbox slected

    Great solution! Thanks.

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