Auto scrolling a text box as more text added?

D

David Hearn

I'm working on a .Net CF 2.0 app running on WM2003/WM5 devices. I have
a text box with a vertical scroll bar which I use to display progress
logs (1 line per step).

Does anyone know how to get it to auto-scroll when a new line of text is
added and the viewable area of the box is full? It would be nice to
have an AutoScroll property, but this isn't present on TextBox.

Any suggestions?

Thanks

David
 
A

Arun

David, Is your Scrollbars property is set to other than 'None', try to
set the property to other than None and hope this would solve your
problem

Cheers,
Arun.
www.innasite.com
 
D

David Hearn

The ScrollBars property of the TextBox is set to "Vertical" and I'm
seeing that when appending text to it (TextBoxName.Text += "New
Text\r\n";), it doesn't scroll if the box is full, rather it shows the
first line downwards (rather than last line upwards).

The options for the ScrollBars property can be
None,Vertical,Horizonal,Both. So I assume I've met the condition of
having it set to something other than 'None'.

Thanks

David
 
D

David Hearn

I'll take a look at that. Unfortunately the device has been borrowed
today, so checking it will take a while.

I'll report back if I get it working.

Thanks

David
 

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