vb里计时的hh mm ss有专门控件或者函数吗

来源:百度知道 编辑:UC知道 时间:2024/06/08 20:15:25
用计时器做个正计时或者倒计时
hh mm ss可以自己代码设定进位制啥的
感觉麻烦的
有简单的办法吗
有专门的函数吗
我是说 从00:00:00开始正计时或者从3:00:00开始倒计时 不是现实系统时间

Print Format(date,"hh-mm-ss")

这样行不行?

懒得说了,直接复制下面的代码保存为Form1.frm调试就可以了。

VERSION 5.00
Begin VB.Form Form1
BorderStyle = 4 'Fixed ToolWindow
Caption = "Form1"
ClientHeight = 2310
ClientLeft = 45
ClientTop = 360
ClientWidth = 2520
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2310
ScaleWidth = 2520
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "Start"
Height = 255
Index = 3
Left = 1680
TabIndex = 9
Top = 840
Width = 735
End
Begin VB.CommandButton