Results 1 to 2 of 2

Thread: Text Boxes

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Perth, WA
    Posts
    35

    Post

    I have a piece of code which checks if the last char entered in a textbox is a number or letter and if its a letter it prints the contents of the textbox back into the textbox without the last char.

    the only problem is, it then moves the focus to the start of the textbox.

    how do I move the focus to the end of the textbox?

    any suggestions welcome

  2. #2
    Guest

    Post

    Use the SelStart property.
    Code:
    Text1.SelLength = 0
    Text1.SelStart = Len(Text1)

    ------------------

    Vincent van den Braken
    EMail: azzmodan@azzmodan.demon.nl
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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