home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / adx7mu1a / dialstat.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-06-14  |  3.1 KB  |  97 lines

  1. VERSION 5.00
  2. Begin VB.Form Dialstatus 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Dialing"
  5.    ClientHeight    =   1155
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   4710
  9.    ClipControls    =   0   'False
  10.    ControlBox      =   0   'False
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   1155
  15.    ScaleWidth      =   4710
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   1  'CenterOwner
  18.    Begin VB.CommandButton dialagain 
  19.       Caption         =   "Dial"
  20.       Enabled         =   0   'False
  21.       Height          =   375
  22.       Left            =   840
  23.       TabIndex        =   2
  24.       Top             =   720
  25.       Width           =   1215
  26.    End
  27.    Begin VB.CommandButton Command1 
  28.       Cancel          =   -1  'True
  29.       Caption         =   "cancel"
  30.       Default         =   -1  'True
  31.       Height          =   375
  32.       Left            =   2640
  33.       TabIndex        =   1
  34.       Top             =   720
  35.       Width           =   1215
  36.    End
  37.    Begin VB.Label Label1 
  38.       Alignment       =   2  'Center
  39.       Caption         =   "Label1"
  40.       Height          =   375
  41.       Left            =   960
  42.       TabIndex        =   0
  43.       Top             =   120
  44.       Width           =   2655
  45.    End
  46. Attribute VB_Name = "Dialstatus"
  47. Attribute VB_GlobalNameSpace = False
  48. Attribute VB_Creatable = False
  49. Attribute VB_PredeclaredId = True
  50. Attribute VB_Exposed = False
  51. Private Sub Command1_Click()
  52. If answerline = True Then
  53.     MainBoard.Enabled = True
  54.     MainBoard.MSComm1.PortOpen = False
  55.     Unload Me
  56.     Exit Sub
  57. End If
  58. MainBoard.MSComm1.PortOpen = False
  59. phonenumbersform.Enabled = True
  60. instring = ""
  61. Unload Me
  62. alwaysshow = 0
  63. phonenumbersform.Show
  64. End Sub
  65. Private Sub dialagain_Click()
  66.  Call MainBoard.dialme(phonenumbersform.Label1.Caption)
  67.  Label1.Caption = "Dialing... " & phonenumbersform.Label1.Caption
  68. End Sub
  69. Private Sub Form_Load()
  70. MainBoard.Enabled = False
  71. multiplayermode = True
  72. If answerline = True Then
  73.     Me.Caption = "Waiting For a Call."
  74.     dialagain.Visible = False
  75.     Label1.Caption = "Waiting For Ring........"
  76.         If MainBoard.MSComm1.PortOpen = False Then
  77.             MainBoard.MSComm1.CommPort = commnumber
  78.             MainBoard.MSComm1.settings = maxspeed & ",n,8,1"
  79.             MainBoard.MSComm1.InputLen = 0
  80.             MainBoard.MSComm1.EOFEnable = False
  81.             MainBoard.MSComm1.Handshaking = comNone
  82.             MainBoard.MSComm1.InputMode = comInputModeBinary
  83.             MainBoard.MSComm1.RTSEnable = True
  84.             MainBoard.MSComm1.SThreshold = "2"
  85.             MainBoard.MSComm1.RThreshold = "2"
  86.             MainBoard.MSComm1.DTREnable = True
  87.             MainBoard.MSComm1.PortOpen = True
  88.             Debug.Print "Modem Speed is set to " & maxspeed
  89.         End If
  90.     MainBoard.MSComm1.Output = "AT" & vbCr & vbCr & vbCr
  91.     Exit Sub
  92. End If
  93. dialagain.Enabled = False
  94. alwaysshow = 1
  95. Label1.Caption = "Dialing... " & phonenumbersform.Label1.Caption
  96. End Sub
  97.