How do I turn Textbox Autoscrolling On/Off?

R

Russ Ryba

I'm working on a chat application. Right now when text is updated, it
auto-scrolls so the most recent text is always shown. I would like to
allow the users to use the scroll-bar to browse backwards through the
saved text, but every time new text comes in the textbox jumps back down
to the new text.

I guess I have two questions then.

1. Is there a property, or message I can send that will make the textbox
only scroll when I want it to?
2. Is there a way to detect the position of the scrollbar? I want to
know if it is at the bottom or not so I can set auto-scroll on or off.
 
R

Russ Ryba

Thanks Sergey,

I downloaded you example - except that it seems to be an empty shell
program. All I see is a simple form with a textbox that appears to be
entirely created using the Windows Forms Designer.

I'll look up WM_VSCROLL though, thanks for the info.

- Russ
 

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