📄 4.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.OptionButton Option1
Caption = "选择2"
Height = 615
Index = 1
Left = 120
TabIndex = 3
Top = 1200
Width = 1575
End
Begin VB.OptionButton Option1
Caption = "选择1"
Height = 615
Index = 0
Left = 120
TabIndex = 2
Top = 120
Width = 1575
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 495
Left = 3480
TabIndex = 1
Top = 1080
Width = 615
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 3360
TabIndex = 0
Top = 240
Width = 735
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Private Sub Command1_Click()
If i = 0 Then i = 1
If i > 2 Then Exit Sub
i = i + 1
Load Option1(i)
Option1(i).Visible = True
Option1(i).Top = Option1(i - 1).Top + 600
Option1(i).Caption = "选择" & (i + 1)
Option1(0).SetFocus
End Sub
Private Sub Command2_Click()
If i <= 1 Then Exit Sub
Unload Option1(i)
i = i - 1
Option1(0).SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -