form2.frm
来自「Gestion de una pizza rapida y sencilla」· FRM 代码 · 共 431 行
FRM
431 行
VERSION 5.00
Begin VB.Form Form2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "VENKY'S PIZZA HOUSE-BILL DETAILS"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 8490
ScaleWidth = 11880
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.CommandButton Command2
BackColor = &H00C0C0C0&
Caption = "Print"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 10080
Picture = "Form2.frx":0000
Style = 1 'Graphical
TabIndex = 16
ToolTipText = "Print Bill"
Top = 360
Width = 855
End
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 1335
Left = 240
TabIndex = 3
Top = 5040
Width = 8415
Begin VB.Label Label8
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "TOTAL AMMOUNT"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 195
Left = 2160
TabIndex = 6
Top = 360
Width = 1620
End
Begin VB.Label LNP
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "NP"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Left = 4680
TabIndex = 5
Top = 360
Width = 270
End
Begin VB.Label Label9
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "!!! THANK YOU COME AGAIN !!!"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 195
Left = 2400
TabIndex = 4
Top = 840
Width = 2790
End
End
Begin VB.Label Label3
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "DATE"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 195
Left = 840
TabIndex = 15
Top = 2400
Width = 510
End
Begin VB.Line Line7
X1 = 8640
X2 = 8640
Y1 = 3720
Y2 = 5040
End
Begin VB.Line Line3
X1 = 240
X2 = 240
Y1 = 3720
Y2 = 5040
End
Begin VB.Image Image1
Height = 2955
Left = 4320
Picture = "Form2.frx":0399
Top = 600
Width = 3750
End
Begin VB.Line Line1
X1 = 240
X2 = 8640
Y1 = 3720
Y2 = 3720
End
Begin VB.Line Line2
X1 = 240
X2 = 8640
Y1 = 4320
Y2 = 4320
End
Begin VB.Label Label5
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "PIZZA"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 195
Left = 960
TabIndex = 14
Top = 3960
Width = 555
End
Begin VB.Label LPIZZA
AutoSize = -1 'True
BackColor = &H80000009&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Index = 0
Left = 480
TabIndex = 13
Top = 4560
Width = 75
End
Begin VB.Label Label6
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "UNIT PRICE"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 195
Left = 3840
TabIndex = 12
Top = 3960
Width = 1080
End
Begin VB.Label Label7
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "QUANTITY"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 195
Left = 5520
TabIndex = 11
Top = 3960
Width = 960
End
Begin VB.Line Line5
X1 = 5280
X2 = 5280
Y1 = 3720
Y2 = 4920
End
Begin VB.Line Line6
X1 = 6600
X2 = 6600
Y1 = 3720
Y2 = 4920
End
Begin VB.Label Label4
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "TOTAL"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 195
Left = 6840
TabIndex = 10
Top = 3960
Width = 615
End
Begin VB.Label LQTY
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Index = 0
Left = 5640
TabIndex = 9
Top = 4560
Width = 75
End
Begin VB.Label LUP
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Index = 0
Left = 3960
TabIndex = 8
Top = 4560
Width = 75
End
Begin VB.Label LTOT
AutoSize = -1 'True
BackColor = &H80000009&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Index = 0
Left = 6840
TabIndex = 7
Top = 4560
Width = 75
End
Begin VB.Line Line4
X1 = 3000
X2 = 3000
Y1 = 3720
Y2 = 4920
End
Begin VB.Label LBNO
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "BILLNO"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 195
Left = 2040
TabIndex = 2
Top = 1680
Width = 675
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H8000000E&
Caption = "BILL NO"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 240
Left = 480
TabIndex = 1
Top = 1680
Width = 855
End
Begin VB.Shape Shape1
Height = 615
Left = 360
Top = 1440
Width = 3375
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H8000000E&
Caption = "VENKY'S PIZZA HOUSE"
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 555
Left = 600
TabIndex = 0
Top = 0
Width = 5850
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Command2.Visible = False
On Error GoTo HAND
Form2.PrintForm
MsgBox ("Send to Printer")
Unload Me
Exit Sub
HAND:
MsgBox "Printer not connected or switched off", vbCritical, "VENKY'S PIZZA HOUSE"
Command2.Visible = True
End Sub
Private Sub Form_Load()
Label3.Caption = Date
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?