VERSION 5.00
Begin VB.Form winAddInstance 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "New Device"
   ClientHeight    =   1350
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4695
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1350
   ScaleWidth      =   4695
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtDevName 
      Height          =   285
      Left            =   1560
      TabIndex        =   2
      Top             =   240
      Width           =   2895
   End
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "&Cancel"
      Height          =   375
      Left            =   2520
      TabIndex        =   1
      Top             =   840
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "&OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   960
      TabIndex        =   0
      Top             =   840
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "Device Name:"
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   240
      Width           =   1215
   End
End
Attribute VB_Name = "winAddInstance"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' File:  "AddInstance.frm" - Visual Basic form definition file
'' Desc:  This file includes component definitions and event handlers
''        for the winAddInstance form.
''
''        This form takes care of adding a newly created Device Instance
''        definitions. This form is controlled by the AddInstance routine.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Option Explicit
Private m_sDevName As String

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' Control event handlers
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub Command1_Click()

'The OK button on the New Instance form
      
    If (Len(txtDevName.Text) < 1) Then
        MsgBox ("Please enter a valid device name.")
    Else
        m_sDevName = txtDevName.Text
        Me.Hide
    End If
    
End Sub

Private Sub Command2_Click()

    Me.Hide
    
End Sub

Private Sub Form_Activate()

    txtDevName.SetFocus
    
End Sub

Private Sub Form_Load()

    txtDevName.Text = ""
    
End Sub

Public Property Get GetDevName() As String

    GetDevName = m_sDevName
    
End Property

