📄 frmlottery.frm
字号:
VERSION 5.00
Begin VB.Form frmLottery
BorderStyle = 1 'Fixed Single
Caption = "彩票随机号生成器"
ClientHeight = 3195
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Frame FrameFu
Caption = "玩法"
Height = 1320
Left = 2295
TabIndex = 5
Top = 45
Width = 2310
Begin VB.OptionButton OptionFu
Caption = "双色球"
Height = 330
Index = 1
Left = 225
TabIndex = 8
Top = 765
Width = 1635
End
Begin VB.OptionButton OptionFu
Caption = "3D"
Height = 240
Index = 0
Left = 225
TabIndex = 7
Top = 315
Value = -1 'True
Width = 1410
End
End
Begin VB.Frame Frame1
Caption = "彩票类型"
Height = 1320
Left = 45
TabIndex = 2
Top = 45
Width = 2085
Begin VB.OptionButton Option1
Caption = "体彩"
Height = 330
Index = 1
Left = 315
TabIndex = 4
Top = 810
Width = 1185
End
Begin VB.OptionButton Option1
Caption = "福彩"
Height = 330
Index = 0
Left = 315
TabIndex = 3
Top = 315
Value = -1 'True
Width = 1545
End
End
Begin VB.CommandButton Command1
Caption = "产生随机号"
Height = 330
Left = 900
TabIndex = 0
Top = 1665
Width = 2265
End
Begin VB.Frame FrameTi
Caption = "玩法"
Height = 1320
Left = 2295
TabIndex = 6
Top = 45
Visible = 0 'False
Width = 2355
End
Begin VB.Label Label1
Height = 510
Left = 135
TabIndex = 1
Top = 2250
Width = 4425
End
End
Attribute VB_Name = "frmLottery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ShowRandomNumbers(ByVal numArry As Variant, lbl As Label)
Dim i As Long
lbl.Caption = ""
If IsEmpty(numArry) Then Exit Sub
For i = 0 To UBound(numArry) - 1
lbl.Caption = lbl.Caption & " " & numArry(i)
Next
End Sub
Private Sub Command1_Click()
Dim clsObj As New clsNumber
Dim numArry As Variant
If Option1(0).Value Then
If OptionFu(0).Value Then
numArry = clsObj.Weal3D
ElseIf OptionFu(1).Value Then
numArry = clsObj.TwinColor
End If
ElseIf Option1(1).Value Then
End If
ShowRandomNumbers numArry, Label1
End Sub
Private Sub Option1_Click(Index As Integer)
If Index = 0 Then
FrameFu.Visible = True
FrameTi.Visible = False
ElseIf Index = 1 Then
FrameTi.Visible = True
FrameFu.Visible = False
End If
Label1.Caption = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -