home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / PVb5.0 / VB / TEMPLATE / FORMS / LOGIN.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-01-24  |  2.6 KB  |  97 lines

  1. VERSION 5.00
  2. Begin VB.Form frmLogin 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "
  5.    ClientHeight    =   1545
  6.    ClientLeft      =   2835
  7.    ClientTop       =   3480
  8.    ClientWidth     =   3750
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   912.837
  13.    ScaleMode       =   0  'User
  14.    ScaleWidth      =   3521.047
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   2  'CenterScreen
  17.    Begin VB.TextBox txtUserName 
  18.       Height          =   345
  19.       Left            =   1290
  20.       TabIndex        =   1
  21.       Top             =   135
  22.       Width           =   2325
  23.    End
  24.    Begin VB.CommandButton cmdOK 
  25.       Caption         =   "
  26.       Default         =   -1  'True
  27.       Height          =   390
  28.       Left            =   495
  29.       TabIndex        =   4
  30.       Top             =   1020
  31.       Width           =   1140
  32.    End
  33.    Begin VB.CommandButton cmdCancel 
  34.       Cancel          =   -1  'True
  35.       Caption         =   "
  36.       Height          =   390
  37.       Left            =   2100
  38.       TabIndex        =   5
  39.       Top             =   1020
  40.       Width           =   1140
  41.    End
  42.    Begin VB.TextBox txtPassword 
  43.       Height          =   345
  44.       Left            =   1290
  45.       PasswordChar    =   "*"
  46.       TabIndex        =   3
  47.       Top             =   525
  48.       Width           =   2325
  49.    End
  50.    Begin VB.Label lblLabels 
  51.       Caption         =   "
  52. (&U):"
  53.       Height          =   270
  54.       Index           =   0
  55.       Left            =   105
  56.       TabIndex        =   0
  57.       Top             =   150
  58.       Width           =   1080
  59.    End
  60.    Begin VB.Label lblLabels 
  61.       Caption         =   "
  62. (&P):"
  63.       Height          =   270
  64.       Index           =   1
  65.       Left            =   105
  66.       TabIndex        =   2
  67.       Top             =   540
  68.       Width           =   1080
  69.    End
  70. Attribute VB_Name = "frmLogin"
  71. Attribute VB_GlobalNameSpace = False
  72. Attribute VB_Creatable = False
  73. Attribute VB_PredeclaredId = True
  74. Attribute VB_Exposed = False
  75. Option Explicit
  76. Public LoginSucceeded As Boolean
  77. Private Sub cmdCancel_Click()
  78.     '
  79.  false
  80.     LoginSucceeded = False
  81.     Me.Hide
  82. End Sub
  83. Private Sub cmdOK_Click()
  84.     '
  85.     If txtPassword = "password" Then
  86.         '
  87.         '
  88.         LoginSucceeded = True
  89.         Me.Hide
  90.     Else
  91.         MsgBox "
  92. ", , "
  93.         txtPassword.SetFocus
  94.         SendKeys "{Home}+{End}"
  95.     End If
  96. End Sub
  97.