winform里的PictureBox本身就支持GIF动画的label 动起来..怎么动?? 可以考虑Timer控件

解决方案 »

  1.   

    恩,label动起来,可以通过timer加减left,top来控制
      

  2.   


            private void timer_RollTitle_Tick(object sender, EventArgs e)
            {
                if (label_RollTitle.Left < -this.label_RollTitle.Width)
                {
                    label_RollTitle.Left = +groupBox1.Width - 50;
                }
                else
                {
                    label_RollTitle.Left = label_RollTitle.Left - 50;
                }
            }
    原理:用time控件,form登陆以后触发。不断改变lable的位置。
    效果:lable左右动起来,也就是文字滚动了。楼主可以参考一下
      

  3.   

    我说的是“让label中的文字动起来?” 让Lable中的文字动。
      

  4.   

    可以改变text属性,不规则动的话,用多个label,每个label的text只有一个字,然后改变每个lebel的left和top
      

  5.   


    用Timer控件 不断更改Label控件的text属性//放置一个Timer控件、Button控件和一个Label控件在WinForm中
     
        public partial class Form1 : Form
        {
            int i = 0;
            char c = '.';
            string str = "";
            bool b = false;        public Form1()
            {
                InitializeComponent();
            }        private void timer1_Tick(object sender, EventArgs e)
            {
                if (i == 4) { i = 0; }
                label1.Text = "记忆删除中" + str.PadLeft(i,c);
                i++; 
            }        private void button1_Click(object sender, EventArgs e)
            {
                if (b == false)
                {
                    timer1.Start();
                    button1.Text = "停止";
                }
                else 
                {
                    timer1.Stop();
                    button1.Text = "开始";            }
                b = !b;
            }        private void Form1_Load(object sender, EventArgs e)
            {
                timer1.Interval = 1000;
                label1.Text = "开始删除吗?";
                button1.Text = "开始";
            }    } 
      

  6.   

    截取text内容显示
    “中华人民共和国”->“华人民共和国”->“人民共和国” 想要循环后面再补上截掉的字
      

  7.   

       PointF p;
            Font f = new Font("宋体", 12, FontStyle.Bold);
            Color c = Color.White;
            string strtemp;
            string strText = "中华人民共和国";        private void timer1_Tick(object sender, EventArgs e)
            {
               
                Graphics g = this.label4.CreateGraphics();
                SizeF s = new SizeF();
                s = g.MeasureString(strText, f); 
                Brush brush = Brushes.Black;
                g.Clear(c);             if (strtemp != strText)
                {
                    p = new PointF(this.label4.Size.Width, 0);
                    strtemp = strText;
                }
                else
                    p = new PointF(p.X - 10, 0); 
                if (p.X <= -s.Width)
                    p = new PointF(this.label4.Size.Width, 0);
                g.DrawString(strText, f, brush, p);
            }
      

  8.   

    或者你弄两个lable控件,让这两个离得近一点,然后用timer控件让他们一个出现一个隐藏交替出现,这样也能出现你所说的文字动起来的效果,方法很多,楼上的大大们的方法都不错,就看你喜欢怎么用了