VERSION 2.00
Begin Form RegInfoDlg 
   Caption         =   "Registration Information Dialog Box"
   ClientHeight    =   2985
   ClientLeft      =   2850
   ClientTop       =   1950
   ClientWidth     =   6960
   Height          =   3390
   Left            =   2790
   LinkTopic       =   "Form2"
   ScaleHeight     =   2985
   ScaleWidth      =   6960
   Top             =   1605
   Width           =   7080
   Begin CommandButton cmdExit 
      Caption         =   "E&xit Setup"
      Height          =   395
      Left            =   4320
      TabIndex        =   8
      Top             =   2400
      Width           =   1500
   End
   Begin CommandButton cmdContinue 
      Caption         =   "&Continue"
      Default         =   -1  'True
      Height          =   395
      Left            =   1440
      TabIndex        =   7
      Top             =   2400
      Width           =   1500
   End
   Begin TextBox txtLocation 
      Height          =   285
      Left            =   2200
      TabIndex        =   6
      Text            =   "Timbuktu, AK"
      Top             =   1800
      Width           =   4200
   End
   Begin TextBox txtCompany 
      Height          =   285
      Left            =   2200
      TabIndex        =   5
      Text            =   "XYZ  Company, Inc."
      Top             =   1200
      Width           =   4200
   End
   Begin TextBox txtName 
      Height          =   285
      Left            =   2200
      TabIndex        =   4
      Text            =   "John Doe"
      Top             =   600
      Width           =   4200
   End
   Begin Label lblLocation 
      Alignment       =   1  'Right Justify
      Caption         =   "Location:   "
      Height          =   275
      Left            =   720
      TabIndex        =   3
      Top             =   1920
      Width           =   1215
   End
   Begin Label lblCompany 
      Alignment       =   1  'Right Justify
      Caption         =   "Company:   "
      Height          =   275
      Left            =   720
      TabIndex        =   2
      Top             =   1320
      Width           =   1215
   End
   Begin Label lblName 
      Alignment       =   1  'Right Justify
      Caption         =   "Name:   "
      Height          =   275
      Left            =   720
      TabIndex        =   1
      Top             =   720
      Width           =   1215
   End
   Begin Label lblInstruct 
      Caption         =   "Enter the registration information for this product in the field below:"
      Height          =   375
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   6135
   End
End
Sub cmdContinue_Click ()

    If Len(txtName.Text) = 0 Then
        
        MsgBox "Invalid registration name entered.", 48, RegInfoDlg.Caption
        txtName.SetFocus
        txtName.SelStart = 0
        txtName.SelLength = Len(txtName.Text)
    
    ElseIf Len(txtCompany.Text) = 0 Then
        
        MsgBox "Invalid registration company entered.", 48, RegInfoDlg.Caption
        txtCompany.SetFocus
        txtCompany.SelStart = 0
        txtCompany.SelLength = Len(txtCompany.Text)
    
    ElseIf Len(txtLocation.Text) = 0 Then
        
        MsgBox "Invalid registration location entered.", 48, RegInfoDlg.Caption
        txtLocation.SetFocus
        txtLocation.SelStart = 0
        txtLocation.SelLength = Len(txtLocation.Text)
    
    Else
        
        RegInfoDlg.tag = "0"
        RegInfoDlg.Hide
    
    End If

End Sub

Sub cmdExit_Click ()

    RegInfoDlg.tag = "1"
    RegInfoDlg.Hide

End Sub

Sub Form_Load ()

    'Clear the form's initial data contents
    RegInfoDlg.txtName = ""
    RegInfoDlg.txtCompany = ""
    RegInfoDlg.txtLocation = ""
    RegInfoDlg.tag = "0"

End Sub

