📄 showdataform.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form ShowDataForm
Caption = "数据显示窗口"
ClientHeight = 5235
ClientLeft = 165
ClientTop = 570
ClientWidth = 9240
LinkTopic = "Form1"
ScaleHeight = 5235
ScaleWidth = 9240
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "关闭"
Height = 495
Left = 7920
TabIndex = 3
Top = 3000
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "清除"
Height = 495
Left = 7920
TabIndex = 2
Top = 1800
Width = 1215
End
Begin VB.CommandButton save
Caption = "保存"
Height = 495
Left = 7920
TabIndex = 1
Top = 600
Width = 1215
End
Begin MSComDlg.CommonDialog CoD1
Left = 8160
Top = 3960
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox Text1
Height = 5055
Left = 0
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 120
Width = 7695
End
End
Attribute VB_Name = "ShowDataForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Text = ""
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub save_Click()
On Error GoTo nocation
CoD1.CancelError = True
CoD1.InitDir = App.Path
CoD1.Filter = "文本文件 | *.txt"
CoD1.ShowSave
Dim fp As Integer ' 打开文件号
fp = FreeFile
Open CoD1.filename For Output As #fp
Print #fp, Text1.Text
Close #fp
Exit Sub
nocation:
Exit Sub
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -