需要TextBox滚动到文本附加的位置吗? [英] Need TextBox to scroll to where the text is appended?

查看:65
本文介绍了需要TextBox滚动到文本附加的位置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用TextBox1.AppendText,但是我希望视图始终滚动到底部

。有什么想法吗?

Hi,

I am using TextBox1.AppendText, but I want the view to always be scrolled
to the very bottom. Any ideas?

推荐答案

< cooles> schrieb:
<cooles> schrieb:
我正在使用TextBox1.AppendText,但我希望视图始终滚动到最底层。任何想法?
I am using TextBox1.AppendText, but I want the view to always be scrolled
to the very bottom. Any ideas?




在richtextbox中添加一行并将其滚动到视图中

< URL:http://dotnet.mvps。 org / dotnet / faqs /?id = richtextboxscrolltobottom& lang = en>


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>



Adding a line to a richtextbox and scrolling it into view
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=richtextboxscrolltobottom&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


cooles,


TextBox1.SelectionStart = TextBox1.Text.Length


Kerry Moorman

" cooles"写道:
cooles,

TextBox1.SelectionStart = TextBox1.Text.Length

Kerry Moorman
"cooles" wrote:


我正在使用TextBox1.AppendText,但我希望视图始终滚动到最底层。任何想法?
Hi,

I am using TextBox1.AppendText, but I want the view to always be scrolled
to the very bottom. Any ideas?



我相信AppendText()本身会滚动到最后。如果没有,


TextBox1.SelectionStart = TextBox1.TextLength

TextBox1.ScrollToCaret()


< cooles> ;在留言新闻中写道:%2 **************** @ TK2MSFTNGP14.phx.gbl ...




我正在使用TextBox1.AppendText,但是我希望视图始终滚动到底部

。有什么想法吗?

I believe AppendText() itself will scroll to the end. If not,

TextBox1.SelectionStart = TextBox1.TextLength
TextBox1.ScrollToCaret()

<cooles> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi,

I am using TextBox1.AppendText, but I want the view to always be scrolled
to the very bottom. Any ideas?


这篇关于需要TextBox滚动到文本附加的位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆