本帖最后由 shiziltc1 于 2012-02-27 09:26:00 编辑

解决方案 »

  1.   

    间隔时间是秒是吧?    DateTime Starttime = dateTimePicker1.Value;
                   int count=Convert.ToInt32(txtcount.Text);
                   int space = Convert.ToInt32(txtspace.Text); ;
                 dateTimePicker2.value= Starttime .AddSeconds(count*space);
      

  2.   

     输入起始时间 间隔 和结束时间 算出 执行次数  DateTime Starttime = dateTimePicker1.Value;DateTime EndTime = dateTimePicker1.Value;int count=EndTime.Subtract(Starttime ).Seconds/space;