Results 1 to 21 of 21

Thread: Prevent Mouse from changing caret location in Textbox.

Threaded View

  1. #4

    Thread Starter
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819

    Re: Prevent Mouse from changing caret location in Textbox.

    Quote Originally Posted by Eduardo- View Post
    Set the SelStart property to Len(Text1.Text) before adding more text with SelText.
    I can't do that because sometimes the typing starts in the middle.

    For example I'm framing something like this:

    Code:
    *********************************************** ' <- This border
    The Extraordinary Tale of Sterling Soupforkinöv '   <- This is slowtyped in *after* the borders are created.
    *********************************************** ' <- and this border are typed into the textbox first.
    That's just one example. I have stuff like this all over the place. Trying to save the position of every bit of text the program is adding so I can restore the position if the user moves it will be a nightmare.
    Last edited by cafeenman; Dec 20th, 2024 at 03:08 AM.

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