📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "简单编辑器"
ClientHeight = 2820
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 2820
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "结束"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3960
TabIndex = 4
Top = 2160
Width = 615
End
Begin VB.CommandButton Command3
Caption = "粘贴"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3960
TabIndex = 3
Top = 1560
Width = 615
End
Begin VB.CommandButton Command2
Caption = "复制"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3960
TabIndex = 2
Top = 890
Width = 615
End
Begin VB.CommandButton Command1
Caption = "剪切"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3960
TabIndex = 1
Top = 240
Width = 615
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2535
Left = 120
MultiLine = -1 'True
TabIndex = 0
Top = 120
Width = 3735
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim st As String
Private Sub Command1_Click()
st = Text1.SelText
Text1.SelText = ""
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = True
End Sub
Private Sub Command2_Click()
st = Text1.SelText
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = True
End Sub
Private Sub Command3_Click()
Text1.SelText = st
Command1.Enabled = True
Command2.Enabled = True
End Sub
Private Sub Command4_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -