📄 frmti.frm
字号:
VERSION 5.00
Begin VB.Form Frmti
Caption = "输入想跳至的题目的编号"
ClientHeight = 2325
ClientLeft = 60
ClientTop = 345
ClientWidth = 4050
LinkTopic = "Form1"
ScaleHeight = 2325
ScaleWidth = 4050
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1320
TabIndex = 0
Top = 360
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 1
Left = 2160
TabIndex = 2
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 0
Left = 720
TabIndex = 1
Top = 1560
Width = 1215
End
Begin VB.Label Lblts
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 600
TabIndex = 3
Top = 960
Width = 2895
End
End
Attribute VB_Name = "Frmti"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
If Index = 0 Then
If IsNumeric(Text1.Text) Then
If Val(Text1.Text) < 0 Or Val(Text1.Text) > TiShu(StNum) Then
Lblts.Caption = "输入的数字范围必须在1--" & TiShu(StNum) & "之间!"
Text1.SetFocus
Else
Lblts.Caption = ""
ti = Val(Text1.Text)
Unload Me
End If
Else
Lblts.Caption = "输入的必须是数字,范围在1--" & TiShu(StNum) & "之间!"
Text1.SetFocus
End If
Else
Unload Me
End If
End Sub
Private Sub Form_Load()
CenterOnSetupForm Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -