码迷,mamicode.com
首页 > Windows程序 > 详细

c#标签飘过

时间:2016-01-09 18:16:15      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

      private void myMove()
        {
            label2.Left = label2.Left + 20;
            //当标签移除画面,重新复位
            if (label2.Left > this.Width)
            {
                label2.Left = -this.Width;
            }
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            myMove();
        }

 

c#标签飘过

标签:

原文地址:http://www.cnblogs.com/-slient/p/5116734.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!