[VB.NET]我这样写有什么错误?

来源:互联网 发布:linux系统哪个好用 编辑:程序博客网 时间:2024/04/29 19:30
VB.NET源码-156个实用实例哦……<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
我这样写有什么错误?
我做的一个定时器,需要整点报时功能

我写的 If Now().ToString( mm ) = cstr( 00 ) Then
MsgBox( 整点了!! )
End If


怎么不好用呢?该怎么改呢?
__________________________________________________________________________
If Minute(Now()).ToString() = CStr( 00 ) Then
MsgBox( 整点了!! )
End If
__________________________________________________________________________
不好用呢
__________________________________________________________________________
是不是位置错了,我写在load事件里了,不应该在load里吧,那应该在哪里呢?
__________________________________________________________________________
知道了,该写在time的tick事件里,运行成功 哈感谢 VBTiro的回答
__________________________________________________________________________
原创粉丝点击