📄 f3-3.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "例3-3"
ClientHeight = 3405
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3405
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 2400
TabIndex = 5
Top = 2760
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "清 除"
Height = 495
Left = 360
TabIndex = 4
Top = 2760
Width = 1575
End
Begin VB.TextBox Text2
Height = 495
Left = 840
TabIndex = 3
Top = 1440
Width = 2655
End
Begin VB.TextBox Text1
Height = 495
Left = 840
TabIndex = 2
Top = 2040
Width = 2655
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "阴影字"
ForeColor = &H00FFFFFF&
Height = 735
Left = 760
TabIndex = 1
Top = 400
Width = 3000
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "阴影字"
Height = 735
Left = 720
TabIndex = 0
Top = 360
Width = 3000
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() '“清除”按钮的事件过程
Text1.Text = ""
Label1.Caption = "阴影字"
Label2.Caption = "阴影字"
'文本框Text1获得焦点
Text1.SetFocus
End Sub
Private Sub Command2_Click()
End '退出程序
End Sub
Private Sub Form_Load()
Label1.FontName = "黑体"
Label1.FontSize = 40
Label1.FontBold = True
Label2.FontName = "黑体"
Label2.FontSize = 40
Label2.FontBold = True
End Sub
Private Sub Text1_Change()
'把文本框Text1的文本赋值给Text2的Text属性
Text2.Text = Text1.Text
'把文本框Text1的文本赋值给Label1的Caption属性
Label1.Caption = Text1.Text
Label2.Caption = Text1.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -