home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form2
- BorderStyle = 3 'Fixed Double
- Caption = "MSComm Terminal"
- ClientHeight = 1296
- ClientLeft = 1776
- ClientTop = 2892
- ClientWidth = 5220
- ControlBox = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 1716
- Left = 1728
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1296
- ScaleWidth = 5220
- Top = 2520
- Width = 5316
- Begin VB.CommandButton Command1
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 372
- Left = 2160
- TabIndex = 1
- Top = 840
- Width = 972
- End
- Begin VB.Label Label1
- Height = 492
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4932
- End
- Attribute VB_Name = "Form2"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- '*************************************************
- ' CANSEND.FRM is a dialog box that allows 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
- Const SWP_NOMOVE = &h2
- Const SWP_NOSIZE = &h1
- Private Sub Command1_Click()
- CancelSend = True
- End Sub
- Private Sub Form_Activate()
- ' Make this form a floating window that is always on top.
- SetWindowPos hWnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
- End Sub
- Private Sub Form_Deactivate()
- If Not CancelSend Then
- Form2.Show
- End If
- End Sub
-