Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll of a texbox always on bottom [duplicate]

Tags:

c#

winforms

There is a way to keep the scroll on bottom for a multi line textbox?

Something like in the vb6

txtfoo.selstart=len(txtfoo.text)

I'm trying with txtfoo.selectionstart=txtfoo.text.length without success.

Regards.

like image 362
MazarD Avatar asked Dec 22 '22 14:12

MazarD


1 Answers

Ok, I found that the solution was to use

txtfoo.AppendText 

instead of

 txtfoo.text+="something"
like image 163
MazarD Avatar answered Jan 02 '23 20:01

MazarD