关于vb.net三种定时器的信息( 二 )


VB.NET 计时器的问题不对 。步骤如下:
添加一个label标签名字label1 用来显示时间
再添加一个timer控件 名字timer1interval属性=1000 用来计时
窗体添加代码
Dim t As Date '用来记录时间
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles Timer1.Tick
t = t.AddSeconds(1)
Label1.Text = "登录时间:"t.TimeOfDay.ToString
End Sub
关于vb.net三种定时器和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站 。

推荐阅读