Results 1 to 3 of 3

Thread: How to find out if the blinking cursor is at the beginning of the textbox...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    London UK
    Posts
    255

    Question How to find out if the blinking cursor is at the beginning of the textbox...

    Can I find out if the blinking cursor is at the beginning or end of a text box?
    Not at all related to sheep...

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. If Text.SelStart = 0 Then
    2. 'The beginning
    3. ElseIf Text1.SelStart = Len(Text1.Text) Then
    4. 'The end
    5. End If

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    London UK
    Posts
    255
    Cool dude, thanks!
    Not at all related to sheep...

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