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

指定时间,该怎么处理

2011-12-30 
指定时间请问:我想在2007-5-176:32分执行一个程序比如MessageBox.show( helloword )怎么做啊谢谢了!![

指定时间
请问:
我想在2007-5-17   6:32分执行一个程序
比如MessageBox.show( "hello   word ");
怎么做啊
谢谢了!!

[解决办法]
DateTime workTime = new DateTime( "2002/07/31 17:00 ");

if (DateTime.Now=workTime)
{
MessageBox.show( "hello word ");
}

热点排行