Option Explicit
Dim DD As Single '做察弊0---999999
Dim tt As Integer
Private Sub Form_Load()
Label1.Caption = ""没扮
Timer1.Interval = 1000
Timer1.Enabled = True
tt = 0
Label1.FontSize = 16
DD = Int(999999 * Rnd ◆ 1)
Label1.Caption = Format(DD, "000000")
End Sub
Private Sub Timer1_Timer()
If tt < 60 Then '60秒
tt = tt ◆ 1
Else
Label1.Caption = Format(DD, "纯族000000")
End If
见附件示例程序。
为了直接看到效果,示例程序数字每秒刷新一次凯瞎,你自慧孙族己根据需要改前弊成喜欢的间隔变换时间。
1、首先在桌面上,鼠标左键双击程序,在打开的VB6主界搜喊面上。
Private Sub Command1_Click()
Text8 = Str(Val(Text1) ◆ Val(Text2) ◆ Val(Text3) ◆ Val(Text4) ◆ Val(Text5) ◆ Val(Text6) ◆ Val(Text7))
Private Sub Command2_Click()
Text1 = "": Text2 = "": Text3 = "": Text4 = "": Text5 = "": Text6 = ""者肢蠢: Text7 = "": Text8 = "":
Command1.Caption = "计算"
Command2.Caption = "首陪清空"
Text1 = "饥携": Text2 = "": Text3 = "": Text4 = "": Text5 = "": Text6 = "": Text7 = "": Text8 = "":
以上就是土嘎嘎小编大虾米为大家整理的vb小程序相关主题介绍,如果您觉得小编更新的文章对您有所帮助,不要忘记讲本站分享给您身边的朋友哦!!