📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
Caption = "Form1"
ClientHeight = 3870
ClientLeft = 60
ClientTop = 345
ClientWidth = 5475
LinkTopic = "Form1"
ScaleHeight = 3870
ScaleWidth = 5475
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "清除"
Height = 495
Left = 600
TabIndex = 2
Top = 2280
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "画圆"
Height = 495
Left = 600
TabIndex = 1
Top = 1440
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 600
TabIndex = 0
Text = "请单击“画圆”按钮。"
Top = 120
Width = 3495
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.Circle (3200, 2000), 1200 '画圆
Text1.ForeColor = QBColor(12) 'QB的颜色
Text1.FontBold = True '粗体字
Text1.FontItalic = False '非斜体
Text1.Text = "已在窗体上画了一个圆!"
End Sub
Private Sub Command2_Click()
Form1.Cls '清除
Text1.FontSize = 24
Text1.ForeColor = QBColor(11)
Text1.FontBold = False '非粗体字
Text1.FontItalic = True '斜体
Text1.Text = "已将圆擦掉了!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -