2.4.frm
来自「VB6.0应用例题」· FRM 代码 · 共 24 行
FRM
24 行
VERSION 5.00
Begin VB.Form Form1
Caption = "MsgBox示例"
ClientHeight = 1875
ClientLeft = 60
ClientTop = 450
ClientWidth = 4140
LinkTopic = "Form1"
ScaleHeight = 1875
ScaleWidth = 4140
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
prompt = "真的新增该条记录吗"
answer = MsgBox(prompt, vbOKCancel, "Add Record")
If answer = vbOK Then Debug.Print "您选择的是“确定”按钮"
If answer = vbCancel Then Debug.Print "您选择的是“取消”按钮"
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?