📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Lucky-Seven"
ClientHeight = 5400
ClientLeft = 4170
ClientTop = 3255
ClientWidth = 7215
LinkTopic = "Form1"
ScaleHeight = 5400
ScaleWidth = 7215
Begin VB.PictureBox Image1
Height = 2535
Left = 1920
Picture = "Form1.frx":0000
ScaleHeight = 2475
ScaleWidth = 4995
TabIndex = 6
Top = 2880
Visible = 0 'False
Width = 5055
End
Begin VB.CommandButton End
Caption = "End"
Height = 495
Left = 360
TabIndex = 1
Top = 2280
Width = 1335
End
Begin VB.CommandButton Spin
Caption = "Spin"
Height = 495
Left = 360
TabIndex = 0
Top = 1200
Width = 1335
End
Begin VB.Label Label4
BackColor = &H8000000B&
Caption = "LUCKY SEVEN"
BeginProperty Font
Name = "Arial Black"
Size = 15
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 495
Left = 1320
TabIndex = 5
Top = 360
Width = 2535
End
Begin VB.Label Label3
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 1695
Left = 5760
TabIndex = 4
Top = 240
Width = 1215
End
Begin VB.Label Label2
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 1695
Left = 4080
TabIndex = 3
Top = 720
Width = 1215
End
Begin VB.Label Label1
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 1695
Left = 2400
TabIndex = 2
Top = 1080
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub End_Click()
End
End Sub
Private Sub Form_Load()
Randomize
End Sub
Private Sub Spin_Click()
Image1.Visible = False '隐藏硬币图像
Label1.Caption = Int(Rnd * 10)
Label2.Caption = Int(Rnd * 10)
Label3.Caption = Int(Rnd * 10) '产生随机数
'当某个标题为7时,先是硬币图像,并,响铃
If (Label1.Caption = 7) Or (Label2.Caption = 7) Or (Label3.Caption = 7) Then
Image1.Visible = True
Beep
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -