📄 dlgdemo.frm
字号:
VERSION 5.00
Begin VB.Form dlgDemo
BorderStyle = 3 'Fixed Dialog
Caption = "Dialog Box"
ClientHeight = 1275
ClientLeft = 45
ClientTop = 330
ClientWidth = 4575
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1275
ScaleWidth = 4575
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txtDemo
Height = 330
Left = 270
TabIndex = 0
Top = 360
Width = 3885
End
End
Attribute VB_Name = "dlgDemo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Event NotifyClients(ByVal Data As String)
Private Sub txtDemo_Change()
'触发类模块里Dialogs里的NotifyClients事件
RaiseEvent NotifyClients(txtDemo.Text)
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, _
UnloadMode As Integer)
'如果按了 Close 按钮,则
' 隐藏对话框,但是不卸载它。
If UnloadMode = vbFormControlMenu Then
Cancel = True
Me.Visible = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -