home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / WINWAIS / VB / CONNECT.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-12-07  |  1.9 KB  |  72 lines

  1. VERSION 2.00
  2. Begin Form connect_form 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Connect"
  6.    ClientHeight    =   960
  7.    ClientLeft      =   2745
  8.    ClientTop       =   2925
  9.    ClientWidth     =   4575
  10.    Height          =   1365
  11.    Left            =   2685
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   960
  16.    ScaleWidth      =   4575
  17.    Top             =   2580
  18.    Width           =   4695
  19.    Begin CommandButton cancel 
  20.       Caption         =   "Cancel"
  21.       Height          =   345
  22.       Left            =   2130
  23.       TabIndex        =   3
  24.       Top             =   480
  25.       Width           =   945
  26.    End
  27.    Begin CommandButton connect 
  28.       Caption         =   "Connect"
  29.       Default         =   -1  'True
  30.       Height          =   345
  31.       Left            =   1110
  32.       TabIndex        =   2
  33.       Top             =   480
  34.       Width           =   945
  35.    End
  36.    Begin TextBox ipname 
  37.       Height          =   285
  38.       Left            =   870
  39.       TabIndex        =   1
  40.       Top             =   90
  41.       Width           =   3585
  42.    End
  43.    Begin Label Label1 
  44.       BackColor       =   &H00C0C0C0&
  45.       Caption         =   "IP Name"
  46.       Height          =   225
  47.       Left            =   60
  48.       TabIndex        =   0
  49.       Top             =   120
  50.       Width           =   765
  51.    End
  52. Sub cancel_Click ()
  53.   telnet_form.WinSock1.IPName = ""
  54.   telnet_form.WinSock1.Port = 0
  55.   Hide
  56. End Sub
  57. Sub connect_click ()
  58.   telnet_form.WinSock1.IPName = IPName
  59.   telnet_form.WinSock1.Port = 23
  60.   Hide
  61. End Sub
  62. Sub Form_Activate ()
  63.   IPName = telnet_form.WinSock1.IPName
  64.   Port = Str$(telnet_form.WinSock1.Port)
  65. End Sub
  66. Sub ipname_KeyPress (keyascii As Integer)
  67.   If keyascii = 13 Then
  68.     connect_click
  69.     keyascii = 0
  70.   End If
  71. End Sub
  72.