Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I have a textbox that shows the trace output of my app.

After the text is updated I always see the first line. I'd really like it in another way.

If the caret is at the last position of the textbox I want to see the end of the text box.

If it's in another position I'd like to keep it there and have that row visible.

 

I can't find any methods for scrolling the textbox to the caret position, help please!

 

/Kejpa

  • Leaders
Posted
The thing about the textbox is that when the text is changed the caret doesnt move to the end. There is no caret. The SelectionStart property is set to -1, signifying that the caret isnt anywhere i suppose. So you need to move the caret to the location that you want to be visible.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...