首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#中两个dateTimePicker控件 让其中一个为当前时间 怎么改另一个使它跟当前时间相差7天

2012-04-26 
C#中两个dateTimePicker控件 让其中一个为当前时间 如何改另一个使它跟当前时间相差7天C#中两个dateTimePi

C#中两个dateTimePicker控件 让其中一个为当前时间 如何改另一个使它跟当前时间相差7天
C#中两个dateTimePicker控件 让其中一个为当前时间 如何改另一个使它跟当前时间相差7天

[解决办法]
dateTimePicker1.Value = dateTimePicker2.Value.AddDays(7);
[解决办法]
dateTimePicker1.Value = dateTimePicker2.Value.AddDays(-7);
[解决办法]

探讨
dateTimePicker1.Value = dateTimePicker2.Value.AddDays(7);

热点排行