home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
PROGRAM
/
VISBASIC
/
EMED16A
/
SAMPLES
/
VB
/
PCANCEL.FR_
/
PCANCEL.FR
Wrap
Text File
|
1994-08-24
|
2KB
|
61 lines
VERSION 2.00
Begin Form PCANCEL
BorderStyle = 3 'Fixed Double
Caption = "EMPAD"
ClientHeight = 1164
ClientLeft = 2160
ClientTop = 2736
ClientWidth = 2352
ControlBox = 0 'False
Height = 1560
Left = 2124
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 97
ScaleMode = 3 'Pixel
ScaleWidth = 196
Top = 2376
Width = 2424
Begin CommandButton Command1
Caption = "Cancel"
Height = 408
Left = 468
TabIndex = 0
Top = 468
Width = 1404
End
Begin Label Label1
Alignment = 2 'Center
Caption = "Printing..."
Height = 372
Left = 72
TabIndex = 1
Top = 132
Width = 2184
End
End
Option Explicit
Sub Command1_Click ()
Tag = "CANCEL"
End Sub
Sub Form_Activate ()
' The tag control is used by the print routine
'to determine if the user has clicked the "CANCEL" button
Tag = ""
Refresh
DoEvents
If Tag <> "CANCEL" Then
If FilePrint() Then
DoEvents
If Tag <> "CANCEL" Then Printer.EndDoc
End If
End If
Unload Me
End Sub