简体   繁体   English

如何使标签向左选取框和向右选取框?

[英]How to make a label do marquee left and marquee right?

I am trying to find the EASIEST way possible of making a labels text scroll via by typing the text into a textbox. 我试图找到通过在文本框中键入文本来使标签文本滚动的最简便方法。 I can't seem to find a good honest tutorial for both right and left can someone please give me an example of what to do? 我似乎找不到左右手都不错的诚实教程,有人可以举一个例子给我吗?

I don't care if it is smooth or not 我不在乎它是否光滑

With a timer, you could prepend spaces to the text one-by-one up to a point. 使用计时器,您可以将空格一一地放在文本之前。 Then remove the spaces one-by-one until they are all gone. 然后一一删除空间,直到它们全部消失。 That will make the text go right and left....and possibly irritate your users. 这将使文本左右移动....并可能激怒您的用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#如何将此代码从多行文本修改为从右到左移动的选框文本上的标签? - C# How to fix this code from multi-line text to label on marquee text moving right to left? 如何在wpf中将文本作为选取框 - How to make text as marquee in wpf 如果标签宽度不适合C#Windows窗体应用程序中的文本宽度,如何使标签中的文本像(选取框)一样移动? - How can i make the text in the label move like in (marquee) if the label width not fit the text width in C# windows form application? 从右到左以wpf为单位的文本选取框,其中文本块的宽度大于Window而不闪烁 - Right to left Marquee of text in wpf where width of text block is greater then Window without flickering 如何创建平滑的动画文字字幕? - How to create a smooth animated text marquee? 使用Label控件在c#winform中创建循环字幕文本 - using Label control to create looping marquee text in c# winform 有什么方法可以使ProgressBarStyle.Marquee左右移动? - Is there any way to make ProgressBarStyle.Marquee to move from side to side? 有没有办法让Winforms Progress栏设置为Marquee样式更快? - Is there a way to make a Winforms Progress bar that's set to Marquee style to be faster? 没有EnabledVisualStyles()的选取框进度条 - Marquee Progressbar without EnabledVisualStyles() 滚动文本/选取框 - Scrolling text/marquee
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM