?? 2.frm
字號:
VERSION 5.00
Begin VB.Form Form2
BackColor = &H00C0C000&
BorderStyle = 4 'Fixed ToolWindow
Caption = "第二關"
ClientHeight = 6180
ClientLeft = 45
ClientTop = 270
ClientWidth = 7005
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6180
ScaleWidth = 7005
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command7
Caption = "提交"
Height = 375
Left = 4800
TabIndex = 24
Top = 3960
Width = 615
End
Begin VB.CommandButton Command6
Caption = "提交"
Height = 375
Left = 4800
TabIndex = 23
Top = 3240
Width = 615
End
Begin VB.CommandButton Command5
Caption = "提交"
Height = 375
Left = 4800
TabIndex = 22
Top = 2400
Width = 615
End
Begin VB.CommandButton Command4
Caption = "提交"
Height = 375
Left = 4800
TabIndex = 21
Top = 1680
Width = 615
End
Begin VB.CommandButton Command3
Caption = "提交"
Height = 375
Left = 4800
TabIndex = 20
Top = 960
Width = 615
End
Begin VB.TextBox Text11
Appearance = 0 'Flat
BackColor = &H00C0C000&
Height = 375
Left = 5640
TabIndex = 19
Top = 3960
Width = 735
End
Begin VB.TextBox Text10
Appearance = 0 'Flat
BackColor = &H00C0C000&
Height = 375
Left = 5640
TabIndex = 18
Top = 3240
Width = 735
End
Begin VB.TextBox Text9
Appearance = 0 'Flat
BackColor = &H00C0C000&
Height = 375
Left = 5640
TabIndex = 17
Top = 2400
Width = 735
End
Begin VB.TextBox Text8
Appearance = 0 'Flat
BackColor = &H00C0C000&
Height = 375
Left = 5640
TabIndex = 16
Top = 1680
Width = 735
End
Begin VB.TextBox Text7
Appearance = 0 'Flat
BackColor = &H00C0C000&
Height = 375
Left = 5640
TabIndex = 15
Top = 960
Width = 735
End
Begin VB.TextBox Text6
Appearance = 0 'Flat
BeginProperty Font
Name = "宋體"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 11
Top = 5040
Width = 3015
End
Begin VB.CommandButton Command2
Caption = "評分"
Height = 495
Left = 480
TabIndex = 10
Top = 5040
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "下一關"
Height = 495
Left = 5040
TabIndex = 9
Top = 5040
Width = 1215
End
Begin VB.TextBox Text5
Height = 375
Left = 3360
TabIndex = 8
Top = 3960
Width = 975
End
Begin VB.TextBox Text4
Height = 375
Left = 3360
TabIndex = 7
Top = 3240
Width = 975
End
Begin VB.TextBox Text3
Height = 375
Left = 3360
TabIndex = 6
Top = 2400
Width = 975
End
Begin VB.TextBox Text2
Height = 375
Left = 3360
TabIndex = 5
Top = 1680
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 3360
TabIndex = 4
Top = 960
Width = 975
End
Begin VB.Label Label1
BackColor = &H00C0C000&
Caption = $"2.frx":0000
Height = 615
Left = 360
TabIndex = 14
Top = 840
Width = 2775
End
Begin VB.Label Label7
Caption = "在此處寫答案:"
ForeColor = &H000000FF&
Height = 255
Left = 3240
TabIndex = 13
Top = 360
Width = 1335
End
Begin VB.Label Label6
BackColor = &H00C0C000&
Caption = "題目:"
ForeColor = &H000000FF&
Height = 255
Left = 360
TabIndex = 12
Top = 360
Width = 1575
End
Begin VB.Label Label5
BackColor = &H00C0C000&
Caption = $"2.frx":0027
Height = 735
Left = 360
TabIndex = 3
Top = 3840
Width = 3135
End
Begin VB.Label Label4
BackColor = &H00C0C000&
Caption = $"2.frx":0050
Height = 615
Left = 360
TabIndex = 2
Top = 3000
Width = 3135
End
Begin VB.Label Label3
BackColor = &H00C0C000&
Caption = $"2.frx":0072
Height = 735
Left = 360
TabIndex = 1
Top = 2160
Width = 3015
End
Begin VB.Label Label2
BackColor = &H00C0C000&
Caption = $"2.frx":009B
Height = 615
Left = 360
TabIndex = 0
Top = 1440
Width = 2895
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "C" And Text2.Text = "81" And Text3.Text = "12" And Text4.Text = "27" And Text5.Text = "2" Then
Form3.Show
Unload Me
Else: Text6.Text = "五道題全對方可過關!"
End If
End Sub
Private Sub Command2_Click()
If Text1.Text = "C" And Text2.Text = "81" And Text3.Text = "12" And Text4.Text = "27" And Text5.Text = "2" Then
Text6.Text = "恭喜你!滿分過關!"
Else: Text6.Text = "笨蛋!闖關失敗!"
End If
End Sub
Private Sub Command3_Click()
If Text1.Text = "C" Then
Text7.Text = "正確"
Else: Text7.Text = "錯誤"
End If
End Sub
Private Sub Command4_Click()
If Text2.Text = "81" Then
Text8.Text = "正確"
Else: Text8.Text = "錯誤"
End If
End Sub
Private Sub Command5_Click()
If Text3.Text = "12" Then
Text9.Text = "正確"
Else: Text9.Text = "錯誤"
End If
End Sub
Private Sub Command6_Click()
If Text4.Text = "27" Then
Text10.Text = "正確"
Else: Text10.Text = "錯誤"
End If
End Sub
Private Sub Command7_Click()
If Text5.Text = "2" Then
Text11.Text = "正確"
Else: Text11.Text = "錯誤"
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -