如何制作多列滚动的文本框 [英] How do I make a Text Box that is multined scroll

查看:86
本文介绍了如何制作多列滚动的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



任务你应该决定接受它告诉我为什么(在VB中)

Hi All,

The task should you decided to accept it to tell me why (in VB)

txtActivityWindow.Text += "#SZ99 OK" + vbCrLf
txtActivityWindow.Refresh()
txtActivityWindow.ScrollToCaret()



不会向上滚动文本框,因为它充满了数据???

(是的盒子是多线的)我好像记得在C#和Scroll To Caret中有这个问题

修好了它!



Glenn


Does not scroll up the textbox as it is filled with data???
(Yes the box is multi-lined) I seem to remember having this issue in C# and Scroll To Caret
fixed it!

Glenn

推荐答案

请尝试以下方法:



txtActivityWindow.SelectionLength = 0
txtActivityWindow.SelectionStart = tbMessage.Text.Length

txtActivityWindow.ScrollToCaret()



第一行取消选择任何选定的文本。第二行将

选项放在文本末尾。最后一行滚动到选定的点。



regs RonO。
Please try the following:

txtActivityWindow.SelectionLength = 0
txtActivityWindow.SelectionStart = tbMessage.Text.Length
txtActivityWindow.ScrollToCaret()

The first line unselects any selected text. The second line places the
selection at the end of the text. The last line scrolls to the selected point.

regs RonO.


这篇关于如何制作多列滚动的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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