还是前台用js来实现吧,
中转数据,可以采用ajax

解决方案 »

  1.   

    光实现随机的话好整  如果要绘图的话  GDI+
      

  2.   

     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
      

  3.   

    同意2楼,虽然我还没学到GDI但是我知道要实现这个必须用GDI绘图(现在我的知识范围内),不过据说WPF能更简单的实现,唉,学无止境啊