Richard, I don't think that is true
Add a new form
1 place a textbox, a button and a richtextbox on the form and add the
following code.
Now, examine the output window.
My Output:
Got Focus
'My button control was pressed
Lost Focus
Got Focus
'Reset the focus to the textbox to make a point
Line Number 1
Line Number 2
Line Number 3
Line Number 4
Line Number 5
'Occurred when I incpected the output window and moved focus to the DevEnv
Lost Focus
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.TextBox1.Focus()
For counter As Integer = 1 To 5
Me.RichTextBox1.AppendText("Line Number " & counter & vbCrLf)
Console.WriteLine("Line Number " & counter)
Me.RichTextBox1.ScrollToCaret()
Next
End Sub
Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.LostFocus
Console.WriteLine("Lost Focus")
End Sub
Private Sub Textbox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
Console.WriteLine("Got Focus")
End Sub
"Richard" <s@b.k> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Jared" <VB***********@email.com> skrev i en meddelelse
news:10*************@corp.supernews.com... use the scrolltocaret method
It doesn't help, if it doesn't have focus, then it won't scroll down,
Richard