Textbox scrolling

K

Kent Briggs

VB 2005, .NET CF 2.0

Is it possible to append text to a multiline textbox without scrolling
vertically? If not, is it possible to get the vertical scrollbar's thumb
position and reset it after appending? I've tried using SendMessage with
EM_GETTHUMB but it always returns 0 and EM_LINESCROLL has no effect either.
 
D

Daniel Moth

The default is that it scrolls to the top. The first link I sent shows how
to scroll to the bottom. The second link shows an alternative way to control
scrolling by pinvoking. It sounds like you want to scroll somewhere in the
middle. I suggest you look at the examples from the second link and work it
out.

Cheers
Daniel
 
K

Kent Briggs

Daniel said:
The default is that it scrolls to the top. The first link I sent shows how
to scroll to the bottom. The second link shows an alternative way to control
scrolling by pinvoking. It sounds like you want to scroll somewhere in the
middle.

The ideal solution is to be able to append text with no scrolling at
all. Failing that, I want to be able to get the current vertical
position and reset it back after appending.

I suggest you look at the examples from the second link and work it
out.

I did and saw nothing there that solves this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top