how i can make the RichTextBox still see me the last Line ?
like :
line 1
line2
line3]
line4
line5 {hide}
i wanna see the last line always line 5
how ?? visual basic 2008
Hello Dear
Here's a Simple and effective method of doing this:
[php]Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
RichTextBox1.SelectionStart = RichTextBox1.Text.Length
RichTextBox1.ScrollToCaret()
End Sub[/php]
Use google translator for better grammar, so I might be able to answer your question. Your current post is unreadable.
yes I agree...I am not able to yet help you as I don't understand a thing you just said
Yes, the grammar is hard to understand, but still I think I got it. He needs to scroll to the last line when ever the RichTextBox is updated !!!
Originally Posted by FLAMESABER
Hello Dear
Here's a Simple and effective method of doing this:
[php]Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
RichTextBox1.SelectionStart = RichTextBox1.Text.Length
RichTextBox1.ScrollToCaret()
End Sub[/php]
Hope this helps
thx that work
Originally Posted by FLAMESABER
Hello Dear
Here's a Simple and effective method of doing this:
[php]Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
RichTextBox1.SelectionStart = RichTextBox1.Text.Length
RichTextBox1.ScrollToCaret()
End Sub[/php]
Hope this helps
That also works for an textbox.
Thanks for sharing flame
Marked solved, you all know the drill, No posting unless < 7 days and necessary