home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form2
- BorderStyle = 3 'Fixed Double
- Caption = "MSComm Terminal"
- ControlBox = 0 'False
- Height = 1710
- Left = 1710
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1305
- ScaleWidth = 5190
- Top = 2520
- Width = 5310
- Begin CommandButton Command1
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 372
- Left = 2160
- TabIndex = 1
- Top = 840
- Width = 972
- End
- Begin Label Label1
- Height = 492
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4932
- End
- '*************************************************
- 'CANSEND.FRM - Dialog box used to allow the user
- 'to cancel a "Transmit Text File" operation. This
- 'is a Modeless form that acts Modal while allowing
- 'other processes to continue.
- '*************************************************
- DefInt A-Z
- Option Explicit
- Declare Sub SetWindowPos Lib "USER" (ByVal hWnd%, ByVal hWndInsertAfter%, ByVal X%, ByVal Y%, ByVal cx%, ByVal cy%, ByVal wFlags%)
- Const SWP_NOMOVE = &H2
- Const SWP_NOSIZE = &H1
- Sub Command1_Click ()
- CancelSend = True
- End Sub
- Sub Form_Activate ()
- '--- Make this form a "Floating" window
- ' (Always on top)
- SetWindowPos hWnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
- End Sub
- Sub Form_Deactivate ()
- If Not CancelSend Then
-
- Form2.Show
- End If
- End Sub
-