如何使文本框从左向右自动滚动? [英] How do I make a textbox auto scroll from left to right ?

查看:294
本文介绍了如何使文本框从左向右自动滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让文本框自动从左向右滚动?





基本上我的问题是输入的文本文本框太长而无法显示。所以完美的解决方法是让文本框以相当慢的速度从左到右自动滚动,以便工作而不会烦人。



代码到目前为止:



How do I make a textbox auto scroll from left to right ?


Basically my problem is the text being entered into the textbox is too long to be visible. So perfect workaround would be to have the textbox autoscroll from left to right at a reasonably slow rate, so as to work without being annoying.

Code So far:

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        TextBox1.Text = "This is a test message. Trying to figure out, how to get this textbox to autoscroll."
    End Sub
End Class





图片f orm:



http://oi49.tinypic.com/2wdc09v。 jpg

推荐答案

你不是。它不支持自动滚动。



您必须制作自己的控件版本才能执行此操作并实现所有自定义绘制文本,可能还有一个计时器来控制滚动的速度。
You don''t. It doesn''t support "auto" scrolling like that.

You''d have to make your own version of the control to do it and implement all the custom painting of the text and probably a timer to control the speed of the scrolling.


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

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