home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / tool / comm / vbcomm / comtest3.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-27  |  2.4 KB  |  79 lines

  1. VERSION 2.00
  2. Begin Form Form3 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Communications Input"
  6.    ClientHeight    =   795
  7.    ClientLeft      =   1095
  8.    ClientTop       =   4545
  9.    ClientWidth     =   4215
  10.    ControlBox      =   0   'False
  11.    Height          =   1320
  12.    Left            =   1035
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form3"
  15.    MaxButton       =   0   'False
  16.    MinButton       =   0   'False
  17.    ScaleHeight     =   795
  18.    ScaleWidth      =   4215
  19.    Top             =   4080
  20.    Width           =   4335
  21.    Begin CommandButton Command2 
  22.       Cancel          =   -1  'True
  23.       Caption         =   "Close"
  24.       Height          =   375
  25.       Left            =   2100
  26.       TabIndex        =   2
  27.       Top             =   420
  28.       Width           =   2115
  29.    End
  30.    Begin CommandButton Command1 
  31.       Caption         =   "Send"
  32.       Default         =   -1  'True
  33.       Height          =   375
  34.       Left            =   0
  35.       TabIndex        =   1
  36.       Top             =   420
  37.       Width           =   2115
  38.    End
  39.    Begin Label3D Label3D1 
  40.       AlignHor        =   0  'Left
  41.       AlignVert       =   1  'Center
  42.       BackColor       =   &H00C0C0C0&
  43.       Border          =   -1  'True
  44.       BorderWidth     =   1
  45.       Caption         =   "Input:"
  46.       Height          =   29
  47.       Left            =   0
  48.       Raised          =   0   'False
  49.       TextShadow      =   0   'False
  50.       TextShadowCol   =   &H00000000&
  51.       Top             =   0
  52.       WaveEnabled     =   0   'False
  53.       WaveFile        =   ""
  54.       WaveLoop        =   0   'False
  55.       WaveStyle       =   0  'Synchronous
  56.       Width           =   281
  57.       Begin TextBox Text1 
  58.          BackColor       =   &H0000FFFF&
  59.          Height          =   315
  60.          Left            =   540
  61.          TabIndex        =   0
  62.          Top             =   60
  63.          Width           =   3615
  64.       End
  65.    End
  66. Sub Command1_Click ()
  67.    Form1.Picture1.Cls                  ' Send text + CR/LF out the port
  68.    Form1.Comm1.DataStr = Text1.Text + Chr$(10) + Chr$(13)
  69.    Text1.Text = ""
  70. End Sub
  71. Sub Command2_Click ()
  72.    Form1.Comm1.Enable = 0
  73.    Form1.Command2.Enabled = 0
  74.    Form1.Command1.Enabled = 0
  75.    Form1.Command3.Enabled = 1
  76.    Form1.Command4.Enabled = 1
  77.    Form3.Hide
  78. End Sub
  79.