怎样用C#实现数字滚动 还是前台用js来实现吧,中转数据,可以采用ajax 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 光实现随机的话好整 如果要绘图的话 GDI+ private Label label = new Label(); public string text=""; private void FrmShow_Load(object sender, EventArgs e) { this.label.Location = new Point(149, 13); this.label.Size = new Size(134, 16); this.Controls.Add (label); this.label.Text = ""; this.timer1.Enabled = true; this.timer1.Interval = 500; p = new PointF(this.label.Size.Width, 0); } PointF p; Font f = new Font("宋体", 10); Color c = Color.White; string temp; private void timer1_Tick(object sender, EventArgs e) { Graphics g = this.label.CreateGraphics(); SizeF s = new SizeF(); s = g.MeasureString(text, f); Brush brush = Brushes.Black; g.Clear(c); if (temp != text) { p = new PointF(this.label.Size.Width, 0); temp = text; } else p = new PointF(p.X - 10, 0); if (p.X <= -s.Width) p = new PointF(this.label.Size.Width, 0); g.DrawString(text, f, brush, p); } http://topic.csdn.net/u/20090609/22/2cf8c78f-ec50-4153-9120-9a76c923f494.html 同意2楼,虽然我还没学到GDI但是我知道要实现这个必须用GDI绘图(现在我的知识范围内),不过据说WPF能更简单的实现,唉,学无止境啊 多线程HttpWebRequest的时候抛出WebException (winform)动态绑定事件 rdlc报表如何实现来源多datable与多个子表格 c#中委托和代理是一样的吗? Baidu无意中找到的ASP.NET数据库入门经典C#编程篇 C#中怎样修改文件名,文件夹名 调试问题(高手进) 启动一个线程写入数据库 在写入数据库的时候可以终止此线程 急啊!请大家帮忙! 请问如何将一个汉字拆分成2位的byte?列入打拆分成0x**和0x**. .Net Install Problem MyGeneration的详细使用步骤 VS2008下开发的程序怎样在windows2000下安装运行
public string text="";
private void FrmShow_Load(object sender, EventArgs e)
{
this.label.Location = new Point(149, 13);
this.label.Size = new Size(134, 16);
this.Controls.Add (label);
this.label.Text = "";
this.timer1.Enabled = true;
this.timer1.Interval = 500;
p = new PointF(this.label.Size.Width, 0);
}
PointF p;
Font f = new Font("宋体", 10);
Color c = Color.White;
string temp;
private void timer1_Tick(object sender, EventArgs e)
{
Graphics g = this.label.CreateGraphics();
SizeF s = new SizeF();
s = g.MeasureString(text, f);
Brush brush = Brushes.Black;
g.Clear(c);
if (temp != text)
{
p = new PointF(this.label.Size.Width, 0);
temp = text;
}
else
p = new PointF(p.X - 10, 0);
if (p.X <= -s.Width)
p = new PointF(this.label.Size.Width, 0);
g.DrawString(text, f, brush, p);
}
http://topic.csdn.net/u/20090609/22/2cf8c78f-ec50-4153-9120-9a76c923f494.html