Public Class frmTestPS
  Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

  Public Sub New()
    MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    'Add any initialization after the InitializeComponent() call

  End Sub

  'Form overrides dispose to clean up the component list.
  Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    If disposing Then
      If Not (components Is Nothing) Then
        components.Dispose()
      End If
    End If
    MyBase.Dispose(disposing)
  End Sub

  'Required by the Windows Form Designer
  Private components As System.ComponentModel.IContainer

  'NOTE: The following procedure is required by the Windows Form Designer
  'It can be modified using the Windows Form Designer.  
  'Do not modify it using the code editor.
  Friend WithEvents PhoneSSN1 As ctlPhoneSSN.PhoneSSN
  Friend WithEvents Label1 As System.Windows.Forms.Label
  Friend WithEvents txtOutput As System.Windows.Forms.TextBox
  Friend WithEvents btnTest As System.Windows.Forms.Button
  Friend WithEvents btnExit As System.Windows.Forms.Button
  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.PhoneSSN1 = New ctlPhoneSSN.PhoneSSN()
    Me.Label1 = New System.Windows.Forms.Label()
    Me.txtOutput = New System.Windows.Forms.TextBox()
    Me.btnTest = New System.Windows.Forms.Button()
    Me.btnExit = New System.Windows.Forms.Button()
    Me.SuspendLayout()
    '
    'PhoneSSN1
    '
    Me.PhoneSSN1.AreaCode = ""
    Me.PhoneSSN1.Complete = "()  -"
    Me.PhoneSSN1.Exchange = ""
    Me.PhoneSSN1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.PhoneSSN1.InputType = ctlPhoneSSN.PhoneSSN.Selection.Phone
    Me.PhoneSSN1.Name = "PhoneSSN1"
    Me.PhoneSSN1.Number = ""
    Me.PhoneSSN1.Size = New System.Drawing.Size(192, 40)
    Me.PhoneSSN1.TabIndex = 0
    '
    'Label1
    '
    Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label1.Location = New System.Drawing.Point(8, 56)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing.Size(112, 20)
    Me.Label1.TabIndex = 1
    Me.Label1.Text = "Output:"
    Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'txtOutput
    '
    Me.txtOutput.Location = New System.Drawing.Point(120, 56)
    Me.txtOutput.Name = "txtOutput"
    Me.txtOutput.Size = New System.Drawing.Size(152, 20)
    Me.txtOutput.TabIndex = 2
    Me.txtOutput.Text = ""
    '
    'btnTest
    '
    Me.btnTest.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnTest.Location = New System.Drawing.Point(8, 88)
    Me.btnTest.Name = "btnTest"
    Me.btnTest.Size = New System.Drawing.Size(80, 24)
    Me.btnTest.TabIndex = 3
    Me.btnTest.Text = "&Test"
    '
    'btnExit
    '
    Me.btnExit.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnExit.Location = New System.Drawing.Point(192, 88)
    Me.btnExit.Name = "btnExit"
    Me.btnExit.Size = New System.Drawing.Size(80, 24)
    Me.btnExit.TabIndex = 4
    Me.btnExit.Text = "E&xit"
    '
    'frmTestPS
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(292, 125)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnExit, Me.btnTest, Me.txtOutput, Me.Label1, Me.PhoneSSN1})
    Me.Name = "frmTestPS"
    Me.Text = "Test of the PhoneSSN Control"
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub btnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click
    txtOutput.Text = PhoneSSN1.Complete
  End Sub

  Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
    Me.Dispose()
  End Sub
End Class
