TextBox / RichTextBox - displaying the end
-
Hi I'm using a TextBox (or could use a RichTextBox) to display a file. I want it to default to showing the last few lines of the file, rather than the first. I've had a look at MSDN but I can't seem to find anything relevant. Can you help? SH
-
Hi I'm using a TextBox (or could use a RichTextBox) to display a file. I want it to default to showing the last few lines of the file, rather than the first. I've had a look at MSDN but I can't seem to find anything relevant. Can you help? SH
Try this
rtb.SelectionStart = rtb.TextLength rtb.ScrollToCaret()
Hope this helps.Aaron Eldreth
TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy
-
Try this
rtb.SelectionStart = rtb.TextLength rtb.ScrollToCaret()
Hope this helps.Aaron Eldreth
TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy
You star! Thanks very much.
-
You star! Thanks very much.
No problem. Glad I could help.
Aaron Eldreth
TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy