❓ [Help]Rich Text[Solved]

Posts 1–8 of 8 · Page 1 of 1
❓ [Help]Rich Text[Solved]
hello Mpgh members and staff


i want help from you

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]

Hope this helps
Quote Originally Posted by Hassan View Post
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
Quote Originally Posted by Hassan View Post
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
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 !!!
Marked solved, you all know the drill, No posting unless < 7 days and necessary
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us