C#中怎么制作滚动文字
答案:3 悬赏:70 手机版
解决时间 2021-03-29 03:19
- 提问者网友:沦陷
- 2021-03-28 08:15
C#中怎么制作滚动文字
最佳答案
- 五星知识达人网友:玩世
- 2021-03-28 08:39
使用Timer控件
使用Timer控件
把Timer控件的Enabled属性设置为true
Interval属性设置为200,然后双击Timer控件,写入如下代码:
Point p = new Point();
p.X = this.label1.Location.X-10;
p.Y = this.label1.Location.Y;
if (p.X < this.Location.X)
p.X = this.Width;
this.label1.Location = p;
使用Timer控件
把Timer控件的Enabled属性设置为true
Interval属性设置为200,然后双击Timer控件,写入如下代码:
Point p = new Point();
p.X = this.label1.Location.X-10;
p.Y = this.label1.Location.Y;
if (p.X < this.Location.X)
p.X = this.Width;
this.label1.Location = p;
全部回答
- 1楼网友:旧脸谱
- 2021-03-28 09:30
timer 或 thread
改变文字的x y值
改变文字的x y值
- 2楼网友:夜余生
- 2021-03-28 08:52
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯