frmInput.frm

 VERSION 5.00
Begin VB.Form frmInput
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "frmInput"
   ClientHeight    =   1590
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   4350
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1590
   ScaleWidth      =   4350
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtInput
      Height          =   285
      Left            =   120
      TabIndex        =   3
      Top             =   480
      Width           =   3855
   End
   Begin VB.CommandButton CancelButton
      Caption         =   "Cancel"
      Height          =   375
      Left            =   1680
      TabIndex        =   1
      Top             =   1080
      Width           =   1215
   End
   Begin VB.CommandButton OKButton
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   3000
      TabIndex        =   0
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label lblText
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   3855
   End
End
Attribute VB_Name = "frmInput"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private ctlValue As Variant
Private MouseIn As MousePointerConstants

Public Property Get Value() As Variant
    Value = ctlValue
End Property

Public Property Let Title(InValue As String)
    lblText.Caption = InValue
End Property

Public Property Get Title() As String
    Title = lblText.Caption
End Property

Public Property Let PasswordChar(InValue As String)
    txtInput.PasswordChar = InValue
End Property

Public Property Get PasswordChar() As String
    PasswordChar = txtInput.PasswordChar
End Property

Private Sub CancelButton_Click()
    ctlValue = vbCancelString
    Unload Me
End Sub

Private Sub Form_Activate()
    MouseIn = Screen.MousePointer
    mOk
    txtInput.SetFocus
    txtInput.Text = ""
End Sub

Private Sub Form_Load()
    txtInput.PasswordChar = ""
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Screen.MousePointer = MouseIn
End Sub

Private Sub OKButton_Click()
    ctlValue = txtInput.Text
    Unload Me
End Sub

Project Homepage: