主题 : windows ce6.0  如何设置定时器 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 33843
精华: 0
发帖: 21
金钱: 110 两
威望: 22 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-12-07
最后登录: 2013-12-03
楼主  发表于: 2011-02-14 16:23

 windows ce6.0  如何设置定时器

本人用micro2240开发板想编一小程序,现在要用到定时器,可这设置也不号使啊,哪位大侠帮小弟一下,用的控件生成,代码如下
this.timer1 = new System.Windows.Forms.Timer();
                       //
            // timer1
            //
            this.timer1.Enabled = true;
            this.timer1.Interval = 1000;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);

  private void timer1_Tick(object sender, EventArgs e)
        {
            this.show();
          //在这里设置断点都不进来
  
        }
感谢各位了,感觉是没有让他开始运行。用settimer函数显示错误。如何创建定时器,谢谢各位指点。