📄 form1.frm
字号:
VERSION 5.00
Object = "{D9347025-9612-11D1-9D75-00C04FCC8CDC}#1.0#0"; "MSBCODE9.OCX"
Begin VB.Form Form1
Caption = "条码打印"
ClientHeight = 3750
ClientLeft = 60
ClientTop = 450
ClientWidth = 3585
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3750
ScaleWidth = 3585
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "OK"
Height = 375
Left = 2880
TabIndex = 10
Top = 1440
Width = 375
End
Begin VB.CommandButton Command3
Caption = "设置"
Height = 615
Left = 2160
TabIndex = 6
Top = 2160
Width = 975
End
Begin VB.TextBox Text4
Height = 375
Left = 1200
TabIndex = 5
Text = "0"
Top = 3120
Width = 375
End
Begin VB.TextBox Text3
Height = 375
Left = 1200
TabIndex = 4
Text = "0"
Top = 2640
Width = 855
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 3
Text = "2"
Top = 2160
Width = 855
End
Begin VB.CommandButton Command2
Caption = "打印条码"
Height = 615
Left = 2160
TabIndex = 1
Top = 2880
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 360
TabIndex = 0
Top = 1440
Width = 2415
End
Begin VB.Label Label1
Caption = "无效确认方式:"
Height = 375
Index = 2
Left = 360
TabIndex = 9
Top = 3120
Width = 735
End
Begin VB.Label Label1
Caption = "子式样:"
Height = 375
Index = 1
Left = 360
TabIndex = 8
Top = 2640
Width = 735
End
Begin VB.Label Label1
Caption = "式样:"
Height = 375
Index = 0
Left = 360
TabIndex = 7
Top = 2160
Width = 735
End
Begin BARCODELibCtl.BarCodeCtrl BarCodeCtrl1
Height = 1095
Left = 360
TabIndex = 2
Top = 240
Width = 2775
Style = 2
SubStyle = 0
Validation = 0
LineWeight = 3
Direction = 0
ShowData = 1
Value = "4901234567894"
ForeColor = 0
BackColor = 16777215
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()
BarCodeCtrl1.Value = Text1.Text
条码打印.BarCodeCtrl1.Value = BarCodeCtrl1.Value
End Sub
Private Sub Command2_Click()
条码打印.BarCodeCtrl1.Value = BarCodeCtrl1.Value
条码打印.PrintForm ' 将显示窗体的内容送到打印机
Printer.EndDoc ' 开始打印
End Sub
Private Sub Command3_Click()
BarCodeCtrl1.Style = Text2.Text
BarCodeCtrl1.SubStyle = Text3.Text
BarCodeCtrl1.Validation = Text4.Text
条码打印.BarCodeCtrl1.Style = BarCodeCtrl1.Style
条码打印.BarCodeCtrl1.SubStyle = BarCodeCtrl1.SubStyle
条码打印.BarCodeCtrl1.Validation = BarCodeCtrl1.Validation
End Sub
Private Sub Form_Load()
Command3_Click
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -