Wiki Home

Programmatic Scrolling

Namespace: VB
I have a question here about scrollbars within an editbox control. How can I programmatically change the scroll value? Here is what I want to do. I have an editbox which I use as an output console. Everytime I append a line in it, I want to set the scroll to the maximum in order to always see the last line appended in the control.


Would just moving the cursor to the end do for you? -- Alex Feldstein

Alternatively, move the selection point of the editbox to the end of the text:
thisform.edit1.SelStart = len(thisform.edit1.Value)
Stuart Dunkeld

Ok, last alternative worked well. Thank you! -- Nicolas
Category Open Questions
( Topic last updated: 2006.09.11 03:57:38 PM )