f3-1.frm
来自「VB课程教学的讲义源的代码」· FRM 代码 · 共 39 行
FRM
39 行
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00000000&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 3090
ClientLeft = 45
ClientTop = 435
ClientWidth = 4680
ForeColor = &H00FFFFFF&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3090
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
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 Form_Click() '单击窗体时触发
Cls '清除用Print方法显示的字符
Print "1+1=?" '在窗体上显示字符串“1+1=?”
End Sub
Private Sub Form_DblClick() '双击窗体时触发
Cls
Print "1+1=2"
End Sub
Private Sub Form_Load()
Form1.FontSize = 24
Caption = "模拟黑板" '使窗体标题栏显示“模拟黑板”字样
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?