form1.frm
来自「很好的教程原代码!」· FRM 代码 · 共 40 行
FRM
40 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 165
ClientTop = 735
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "增加菜单"
Height = 495
Left = 1440
TabIndex = 0
Top = 1200
Width = 1335
End
Begin VB.Menu opened_files_list
Caption = "菜单"
Index = 0
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim opened_file_name(1 To 100) As Integer
Dim n As Integer
Private Sub Command1_Click()
n = n + 1
Load opened_files_list(n)
opened_files_list(n).Caption = "菜单" & CStr(n)
opened_files_list(n).Visible = True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?