📄 frmpatron.frm
字号:
VERSION 5.00
Begin VB.Form frmPatron
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Dialog
Caption = "Patron Information"
ClientHeight = 2400
ClientLeft = 1035
ClientTop = 2235
ClientWidth = 6510
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
LinkTopic = "Form2"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 2400
ScaleWidth = 6510
ShowInTaskbar = 0 'False
Begin VB.TextBox txtPhone
BackColor = &H00C0C0C0&
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 3
Top = 1560
Width = 2535
End
Begin VB.CommandButton cmdReturn
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&Return to Main"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4560
TabIndex = 6
Top = 1560
Width = 1575
End
Begin VB.CommandButton cmdCancel
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&Cancel Ticket"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4560
TabIndex = 5
Top = 960
Width = 1575
End
Begin VB.CommandButton cmdEnter
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&Enter Ticket"
Default = -1 'True
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4560
TabIndex = 4
Top = 360
Width = 1575
End
Begin VB.TextBox txtName
BackColor = &H00C0C0C0&
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 1
Top = 960
Width = 2535
End
Begin VB.Label lblNum
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 495
Left = 1680
TabIndex = 8
Top = 360
Width = 735
End
Begin VB.Label Label3
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
Caption = "Seat number:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 240
Left = 360
TabIndex = 7
Top = 360
Width = 1185
End
Begin VB.Label Label2
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
Caption = "&Phone:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 240
Left = 360
TabIndex = 2
Top = 1440
Width = 630
End
Begin VB.Label Label1
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
Caption = "Patron &name:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 240
Left = 360
TabIndex = 0
Top = 960
Width = 1185
End
End
Attribute VB_Name = "frmPatron"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Dim intSeat As Integer, udtPatronRec As PatronStruc
intSeat = lblNum.Caption
udtPatronRec.strName = Space(8)
udtPatronRec.strPhone = Space(20)
Put #1, intSeat, udtPatronRec
frmSeat.lblSeat(intSeat - 1).BackColor = vbWhite
frmPatron.Hide
End Sub
Private Sub cmdEnter_Click()
Dim intSeat As Integer, udtPatronRec As PatronStruc
intSeat = lblNum.Caption
udtPatronRec.strName = txtName.Text
udtPatronRec.strPhone = txtPhone.Text
Put #1, intSeat, udtPatronRec
frmSeat.lblSeat(intSeat - 1).BackColor = vbRed
frmPatron.Hide
End Sub
Private Sub Form_Load()
frmPatron.Left = (Screen.Width - frmPatron.Width) / 2
frmPatron.Top = (Screen.Height - frmPatron.Height) / 2
End Sub
Private Sub txtName_GotFocus()
txtName.SelStart = 0
txtName.SelLength = Len(txtName.Text)
End Sub
Private Sub txtPhone_GotFocus()
txtPhone.SelStart = 0
txtPhone.SelLength = Len(txtPhone.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -