📄 form1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
BackColor = &H00E0E0E0&
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
FillColor = &H00C0C0C0&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text1
Height = 375
Left = 1320
TabIndex = 2
Text = "我是中国人!"
Top = 840
Width = 1815
End
Begin VB.CommandButton Command1
BackColor = &H00E0E0E0&
Caption = "打印"
Height = 375
Left = 1440
Style = 1 'Graphical
TabIndex = 0
Top = 1920
Width = 1575
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 840
Top = 1680
_ExtentX = 847
_ExtentY = 847
_Version = 393216
Filter = "文本文件|*.txt"
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Height = 255
Left = 480
TabIndex = 1
Top = 360
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
Form1.CommonDialog1.ShowPrinter
For i = 1 To Form1.CommonDialog1.Copies
Printer.Print Text1.Text
Next i
Printer.EndDoc
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -