I have a multi-line Textbox that is continually updated by a process. How do I have it display the last line entered rather than having the user scroll down to the last line entered
I have a multi-line Textbox that is continually updated by a process. How do I have it display the last line entered rather than having the user scroll down to the last line entered
Multi-line Textbox
Renee Rinker
I have tried the suggestion as such:
Me
.TextBoxDisplayRawData.Text &= [text]TextBoxDisplayRawData.SelectionStart = TextBoxDisplayRawData.TextLength
TextBoxDisplayRawData.SelectionLength = 0
and:
TextBoxDisplayRawData.SelectionStart = TextBoxDisplayRawData.TextLength
TextBoxDisplayRawData.SelectionLength = 0
Me.TextBoxDisplayRawData.Text &= [text]and it does not work.
Whisky Fudge
TextBox.AppendText
also. . . you might want to consider using a Listbox instead and the SetSelected method:
aListBox.SetSelected(aListBox.Items.Count-1,
true)xmh
I think you can do it by:
Textbox1.SelectionStart = Textbox1.TextLength
Textbox1.SelectionLength = 0
but I haven't tried it in .NET.