ToolTipText = "EXIT THIS APPLICATION:- BY THE NEAREST DOOR!"
Top = 5760
Width = 615
End
Begin VB.CommandButton Command3
Height = 615
Left = 5160
Picture = "frm39Barcode.frx":36AA
Style = 1 'Graphical
TabIndex = 11
ToolTipText = "CLEAR AND RESET ALL"
Top = 5760
Width = 615
End
Begin VB.CommandButton Command2
Height = 615
Left = 4440
Picture = "frm39Barcode.frx":4374
Style = 1 'Graphical
TabIndex = 10
ToolTipText = "PREVIEW CURRENT BARCODE"
Top = 5760
Width = 615
End
Begin VB.Frame Frame2
Caption = "Make Barcode"
Height = 1095
Left = 240
TabIndex = 5
Top = 4320
Width = 10815
Begin VB.CommandButton Command1
Height = 615
Left = 120
Picture = "frm39Barcode.frx":503E
Style = 1 'Graphical
TabIndex = 7
ToolTipText = "CREATE BARCODE"
Top = 270
Width = 1095
End
Begin VB.TextBox Text1
Height = 285
Left = 1335
TabIndex = 6
Top = 600
Width = 6480
End
Begin VB.Label Label4
Caption = "Enter Text For Barcode Here (Max 20 Characters)"
Height = 300
Left = 1335
TabIndex = 9
Top = 240
Width = 6240
End
Begin VB.Label Label1
BorderStyle = 1 'Fixed Single
Height = 285
Left = 7920
TabIndex = 8
Top = 600
Width = 2655
End
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BackColor = &H00FFFFFF&
Height = 3975
Left = 240
ScaleHeight = 3915
ScaleWidth = 10755
TabIndex = 0
Top = 240
Width = 10815
End
Begin VB.Frame Frame1
Caption = "Picture Properties"
Height = 855
Left = 240
TabIndex = 2
Top = 5640
Width = 4095
Begin VB.Label Label2
BorderStyle = 1 'Fixed Single
Height = 285
Left = 120
TabIndex = 4
Top = 360
Width = 1815
End
Begin VB.Label Label3
BorderStyle = 1 'Fixed Single
Height = 285
Left = 2040
TabIndex = 3
Top = 360
Width = 1815
End
End
Begin VB.Label Node
BackColor = &H00C00000&
Caption = "Label2"
Height = 75
Index = 0
Left = 75
TabIndex = 1
Top = 120
Visible = 0 'False
Width = 75
End
End
Attribute VB_Name = "frm39Barcode"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_PAINT = &HF
Private Const WM_PRINT = &H317
Private Const PRF_CLIENT = &H4& ' Draw the window's client area
Private Const PRF_CHILDREN = &H10& ' Draw all visible child windows
Private Const PRF_OWNED = &H20& ' Draw all owned windows
Dim i As Integer
Const myerrfilepath = 53
Const errfilepath = 75
' Const rterror = 68
Private Sub Command1_Click()
Text1.Text = UCase$(Text1) ' convert all entered text to capitals
Picture1.Cls ' clear the box on each click instead of overwriting
Picture1.CurrentX = 567 ' barcode
Picture1.CurrentY = 567 ' position
Picture1.Font = "Free 3 of 9 Extended"
Picture1.FontSize = 45
Picture1.Print Text1.Text ' barcode text
Picture1.CurrentX = 567 ' postion the below barcode
Picture1.CurrentY = 1400 ' of text the
Picture1.FontSize = 15
Picture1.FontName = "Courier"
Picture1.FontSize = 15
'Picture1.Print Spc(5); ' add additional spaces if required
Picture1.Print Text1.Text
Text1.Text = ""
Text1.SetFocus
End Sub
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)