?? phoneqry.frm
字號:
VERSION 5.00
Begin VB.Form PhoneQuery
Caption = "電話記錄查詢結果"
ClientHeight = 7395
ClientLeft = 60
ClientTop = 345
ClientWidth = 7455
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7395
ScaleWidth = 7455
StartUpPosition = 2 'CenterScreen
Begin VB.TextBox Text10
ForeColor = &H00FF0000&
Height = 420
Left = 1320
Locked = -1 'True
TabIndex = 22
Top = 720
Width = 5775
End
Begin VB.TextBox Text9
ForeColor = &H00FF0000&
Height = 345
Left = 4560
Locked = -1 'True
TabIndex = 21
Top = 1320
Width = 2535
End
Begin VB.CommandButton Command2
Caption = "關 閉"
Height = 375
Left = 5040
TabIndex = 19
Top = 6840
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "打 印"
Height = 375
Left = 1440
TabIndex = 18
Top = 6840
Width = 1215
End
Begin VB.TextBox Text8
ForeColor = &H00FF0000&
Height = 420
Left = 5040
Locked = -1 'True
TabIndex = 17
Top = 6120
Width = 1455
End
Begin VB.TextBox Text7
ForeColor = &H00FF0000&
Height = 420
Left = 1320
Locked = -1 'True
TabIndex = 15
Top = 6120
Width = 1815
End
Begin VB.TextBox Text6
Height = 4095
Left = 360
Locked = -1 'True
MaxLength = 240
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 13
Top = 1800
Width = 6735
End
Begin VB.TextBox Text5
Alignment = 2 'Center
ForeColor = &H00FF0000&
Height = 375
Left = 6240
Locked = -1 'True
TabIndex = 5
Top = 120
Width = 495
End
Begin VB.TextBox Text4
Alignment = 2 'Center
ForeColor = &H00FF0000&
Height = 375
Left = 5160
Locked = -1 'True
TabIndex = 4
Top = 120
Width = 495
End
Begin VB.TextBox Text3
Alignment = 2 'Center
ForeColor = &H00FF0000&
Height = 375
Left = 4080
Locked = -1 'True
TabIndex = 3
Top = 120
Width = 495
End
Begin VB.TextBox Text2
Alignment = 2 'Center
ForeColor = &H00FF0000&
Height = 375
Left = 3000
Locked = -1 'True
TabIndex = 2
Top = 120
Width = 495
End
Begin VB.TextBox Text1
Alignment = 2 'Center
ForeColor = &H00FF0000&
Height = 375
Left = 1320
Locked = -1 'True
TabIndex = 1
Top = 120
Width = 1095
End
Begin VB.Label Label12
Caption = "電話號碼"
Height = 255
Left = 3480
TabIndex = 20
Top = 1320
Width = 975
End
Begin VB.Label Label10
Caption = "值 班 員"
Height = 375
Left = 3960
TabIndex = 16
Top = 6240
Width = 1095
End
Begin VB.Label Label9
Caption = "來 電 人"
Height = 375
Left = 360
TabIndex = 14
Top = 6240
Width = 855
End
Begin VB.Label Label8
Caption = "電話內容"
Height = 375
Left = 240
TabIndex = 12
Top = 1320
Width = 975
End
Begin VB.Label Label7
Caption = "來電單位"
Height = 255
Left = 240
TabIndex = 11
Top = 840
Width = 975
End
Begin VB.Label Label6
Caption = "分"
Height = 375
Left = 6960
TabIndex = 10
Top = 240
Width = 375
End
Begin VB.Label Label5
Caption = "時"
Height = 375
Left = 5880
TabIndex = 9
Top = 240
Width = 255
End
Begin VB.Label Label4
Caption = "日"
Height = 375
Left = 4680
TabIndex = 8
Top = 240
Width = 375
End
Begin VB.Label Label3
Caption = "月"
Height = 375
Left = 3720
TabIndex = 7
Top = 240
Width = 255
End
Begin VB.Label Label2
Caption = "年"
Height = 375
Left = 2640
TabIndex = 6
Top = 240
Width = 255
End
Begin VB.Label Label1
Caption = "來電時間"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "PhoneQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form2.Show
DoEvents
Printer.FontName = "MS Sans Serif"
Printer.FontSize = 12
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print , , "客戶來電記錄"
Printer.Print "------------------------------------------------------------------------------"
Printer.Print "來電日期:"; Text1.Text; "年"; Text2.Text; "月"; Text3.Text; "日"; Text4.Text; "時"; Text5.Text; "分"
Printer.Print "來電單位:"; Text10.Text
Printer.Print "------------------------------------------------------------------------------"
Printer.Print "電話內容:"
Printer.Print Text6.Text
Printer.Print "------------------------------------------------------------------------------"
Printer.Print "來電人:"; Text7.Text
Printer.Print "值班員:"; Text8.Text
Printer.Print "電話號碼:"; Text9.Text
Printer.Print "------------------------------------------------------------------------------"
Printer.EndDoc
Form2.Visible = False
MsgBox "打印完成!"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
qryphone.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -