📄 f2-5.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "文本框的Change举例事件"
ClientHeight = 3900
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3900
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height = 735
Left = 240
TabIndex = 3
Top = 2280
Width = 4215
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "退出"
Height = 495
Left = 2520
TabIndex = 2
Top = 3240
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "清除"
Default = -1 'True
Height = 495
Left = 840
TabIndex = 1
Top = 3240
Width = 1215
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 1935
Left = 240
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 120
Width = 4215
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()
Text1 = ""
End Sub
Private Sub Text1_Change()
Text2.Text = Text1.Text
'Text2 = Text1 'Text是文本框控件的缺省属性
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -