保持两个richtextbox之间的滚动 [英] Maintain scrolling between two richtextbox

查看:44
本文介绍了保持两个richtextbox之间的滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在打字导师喜欢在C#windows应用程序中的应用程序。我有两个带有以下名称的richtextbox(1. UserTXT和2. SystemTXT)。



我几乎完成了所有事情但是我在保持滚动的同时遇到问题。



SystemTXT位于屏幕上方并向用户显示测试内容,在UserTxt用户可以键入要从SystemTXT查看的单词。但是,如果SystemTxt比他的高度大,那么它的显示滚动我想要当用户在UserTXt中键入时,如果用户返回然后滚动重置,则自动滚动开始,如果用户输入隐藏txt显示自动滚动。请任何人都可以帮助我。



请参阅截图以获得更多理解。



< img src =http://www.webunitech.com/txtscroll.jpg/>



谢谢

Ram Kumar


我尝试过:



SystemTXT在屏幕上方显示测试内容对于用户和UserTxt用户可以键入要从SystemTXT查看的单词。但是,如果SystemTxt比他的高度大,那么它的显示滚动我想要当用户在UserTXt中键入时,如果用户返回然后滚动重置,则自动滚动开始,如果用户输入隐藏txt显示自动滚动。请任何人帮助我。

解决方案

看看这里提出的解决方案 - .net - C#:同步两个RichTextBox的滚动位置? - 堆栈溢出 [ ^ ]

Hi,

I am making typing tutor Like Application In C# windows Application. I have two richtextbox with following name(1. UserTXT and 2. SystemTXT).

I have done every thing almost But I am getting issue while maintain scroll Between then.

SystemTXT is upper on screen and display test content to user and in UserTxt user can type the word to see from SystemTXT. But when if SystemTxt is greater then his height then its display scrolling and I want When user typing in UserTXt then automatic scroll is start if User goes back then scrolling reset and if user type forward the hide txt display automatic scroll. Please any one can help me.

Please see the screenshot for more understanding.

<img src="http://www.webunitech.com/txtscroll.jpg"/>

Thanks
Ram Kumar

What I have tried:

SystemTXT is upper on screen and display test content to user and in UserTxt user can type the word to see from SystemTXT. But when if SystemTxt is greater then his height then its display scrolling and I want When user typing in UserTXt then automatic scroll is start if User goes back then scrolling reset and if user type forward the hide txt display automatic scroll. Please any one can help me.

解决方案

Have a look at the solutions presented here - .net - C#: Synchronize Scroll Position of two RichTextBoxes? - Stack Overflow[^]


这篇关于保持两个richtextbox之间的滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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