frmmodeless.frm
来自「个人VB学习源码精选,自己学习时的一些编程小程序,希望对大家有帮助」· FRM 代码 · 共 67 行
FRM
67 行
VERSION 5.00
Begin VB.Form frmModeless
Caption = "Modeless Form"
ClientHeight = 3825
ClientLeft = 60
ClientTop = 345
ClientWidth = 6585
LinkTopic = "Form1"
ScaleHeight = 3825
ScaleWidth = 6585
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdMaximize
Caption = "Ma&ximize"
Height = 375
Left = 4800
TabIndex = 3
Top = 2925
Width = 1335
End
Begin VB.CommandButton cmdNormal
Caption = "&Normal"
Height = 375
Left = 4800
TabIndex = 2
Top = 2125
Width = 1335
End
Begin VB.CommandButton cmdMinimize
Caption = "&Minimize"
Height = 375
Left = 4800
TabIndex = 1
Top = 1325
Width = 1335
End
Begin VB.CommandButton cmdClose
Cancel = -1 'True
Caption = "&Close"
Height = 375
Left = 4800
TabIndex = 0
Top = 525
Width = 1335
End
End
Attribute VB_Name = "frmModeless"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdClose_Click()
Hide
End Sub
Private Sub cmdMaximize_Click()
WindowState = vbMaximized
End Sub
Private Sub cmdMinimize_Click()
WindowState = vbMinimized
End Sub
Private Sub cmdNormal_Click()
WindowState = vbNormal
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?