📄 f3-8.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00000000&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 3345
ClientLeft = 45
ClientTop = 435
ClientWidth = 3225
ForeColor = &H00FFFFFF&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3345
ScaleWidth = 3225
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command3
Caption = "信 息"
Height = 375
Left = 360
TabIndex = 2
Top = 2640
Width = 2415
End
Begin VB.CommandButton Command2
Caption = "回答"
Height = 495
Left = 1680
TabIndex = 1
Top = 2040
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "提问"
Default = -1 'True
Height = 495
Left = 360
TabIndex = 0
Top = 2040
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click() '“提问”按钮的单击事件过程
Dim s As String
s = InputBox("请输入提问", "输入提问", "1+1=?")
Cls '清除用Print方法显示的字符
Print s '在窗体上显示字符串“1+1=?”
End Sub
Private Sub Command2_Click() '“回答”按钮的单击事件过程
Dim s As String
s = InputBox("请输入回答", "输入回答", "1+1=2")
Cls
Print s
End Sub
Private Sub Command3_Click()
MsgBox "模拟黑板程序" & vbNewLine & "制作人:刘某某"
End Sub
Private Sub Form_Load()
Form1.FontSize = 24
Caption = "模拟黑板" '使窗体标题栏显示“模拟黑板”字样
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -