📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5025
ClientLeft = 60
ClientTop = 450
ClientWidth = 9060
LinkTopic = "Form1"
ScaleHeight = 5025
ScaleWidth = 9060
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "摇号结束"
Height = 495
Left = 6960
TabIndex = 8
Top = 2160
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 4560
TabIndex = 3
Text = "Text2"
Top = 360
Width = 1455
End
Begin VB.TextBox Text1
Height = 375
Left = 3000
TabIndex = 2
Text = "Text1"
Top = 360
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "摇号开始"
Height = 495
Left = 6960
TabIndex = 0
Top = 1200
Width = 1095
End
Begin VB.Timer Timer1
Left = 1080
Top = 1320
End
Begin VB.Label Label6
Caption = "Label6"
BeginProperty Font
Name = "宋体"
Size = 90
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2055
Left = 3000
TabIndex = 7
Top = 1440
Width = 2535
End
Begin VB.Label Label4
Caption = "现在时间"
Height = 255
Left = 2280
TabIndex = 6
Top = 4320
Width = 855
End
Begin VB.Label Label3
Caption = "至"
Height = 255
Left = 4200
TabIndex = 5
Top = 480
Width = 255
End
Begin VB.Label Label2
Caption = "数字范围从"
Height = 255
Left = 1920
TabIndex = 4
Top = 480
Width = 975
End
Begin VB.Label Label1
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3600
TabIndex = 1
Top = 4080
Width = 2775
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim wdg1 As Integer
Dim wdg2 As Integer
Dim i As Integer
Dim sum As Integer
Private Sub Command1_Click()
wdg1 = Val(Text1)
wdg2 = Val(Text2)
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Form_Load()
Text1.Text = "1"
Text2.Text = "48"
Timer1.Interval = 55
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Time$
'For i = 1 To 5000
Label6.Caption = Int(wdg2 * Rnd + wdg1 + 1)
'Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -