Auto scrolling a text box as more text added?

  • Thread starter Thread starter David Hearn
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top