Public Class frmBuilding
  Inherits System.Windows.Forms.Form
  Dim MyApartment As New Apartment()
  Dim MyBuilding As New Commercial()
  Dim MyHome As New Home()

#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 Label1 As System.Windows.Forms.Label
  Friend WithEvents Label2 As System.Windows.Forms.Label
  Friend WithEvents Label3 As System.Windows.Forms.Label
  Friend WithEvents Label4 As System.Windows.Forms.Label
  Friend WithEvents txtAddress As System.Windows.Forms.TextBox
  Friend WithEvents txtPrice As System.Windows.Forms.TextBox
  Friend WithEvents txtMonthlyPay As System.Windows.Forms.TextBox
  Friend WithEvents txtTaxes As System.Windows.Forms.TextBox
  Friend WithEvents Label5 As System.Windows.Forms.Label
  Friend WithEvents cmbPropertyType As System.Windows.Forms.ComboBox
  Friend WithEvents Label6 As System.Windows.Forms.Label
  Friend WithEvents Label7 As System.Windows.Forms.Label
  Friend WithEvents Label8 As System.Windows.Forms.Label
  Friend WithEvents Label9 As System.Windows.Forms.Label
  Friend WithEvents Label10 As System.Windows.Forms.Label
  Friend WithEvents Label11 As System.Windows.Forms.Label
  Friend WithEvents Label19 As System.Windows.Forms.Label
  Friend WithEvents Label20 As System.Windows.Forms.Label
  Friend WithEvents Label21 As System.Windows.Forms.Label
  Friend WithEvents Label22 As System.Windows.Forms.Label
  Friend WithEvents txtAUnits As System.Windows.Forms.TextBox
  Friend WithEvents txtARent As System.Windows.Forms.TextBox
  Friend WithEvents txtAOccup As System.Windows.Forms.TextBox
  Friend WithEvents txtCSqFt As System.Windows.Forms.TextBox
  Friend WithEvents txtCRent As System.Windows.Forms.TextBox
  Friend WithEvents txtCPark As System.Windows.Forms.TextBox
  Friend WithEvents txtHSqFt As System.Windows.Forms.TextBox
  Friend WithEvents txtHRent As System.Windows.Forms.TextBox
  Friend WithEvents txtBedrooms As System.Windows.Forms.TextBox
  Friend WithEvents txtBaths As System.Windows.Forms.TextBox
  Friend WithEvents btnAdd As System.Windows.Forms.Button
  Friend WithEvents btnExit As System.Windows.Forms.Button
  Friend WithEvents grbApt As System.Windows.Forms.GroupBox
  Friend WithEvents grbCom As System.Windows.Forms.GroupBox
  Friend WithEvents grbHome As System.Windows.Forms.GroupBox
  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.Label1 = New System.Windows.Forms.Label()
    Me.Label2 = New System.Windows.Forms.Label()
    Me.Label3 = New System.Windows.Forms.Label()
    Me.Label4 = New System.Windows.Forms.Label()
    Me.txtAddress = New System.Windows.Forms.TextBox()
    Me.txtPrice = New System.Windows.Forms.TextBox()
    Me.txtMonthlyPay = New System.Windows.Forms.TextBox()
    Me.txtTaxes = New System.Windows.Forms.TextBox()
    Me.Label5 = New System.Windows.Forms.Label()
    Me.cmbPropertyType = New System.Windows.Forms.ComboBox()
    Me.grbApt = New System.Windows.Forms.GroupBox()
    Me.txtAOccup = New System.Windows.Forms.TextBox()
    Me.txtARent = New System.Windows.Forms.TextBox()
    Me.txtAUnits = New System.Windows.Forms.TextBox()
    Me.Label8 = New System.Windows.Forms.Label()
    Me.Label7 = New System.Windows.Forms.Label()
    Me.Label6 = New System.Windows.Forms.Label()
    Me.grbCom = New System.Windows.Forms.GroupBox()
    Me.txtCPark = New System.Windows.Forms.TextBox()
    Me.txtCRent = New System.Windows.Forms.TextBox()
    Me.txtCSqFt = New System.Windows.Forms.TextBox()
    Me.Label11 = New System.Windows.Forms.Label()
    Me.Label10 = New System.Windows.Forms.Label()
    Me.Label9 = New System.Windows.Forms.Label()
    Me.grbHome = New System.Windows.Forms.GroupBox()
    Me.txtBaths = New System.Windows.Forms.TextBox()
    Me.txtBedrooms = New System.Windows.Forms.TextBox()
    Me.txtHRent = New System.Windows.Forms.TextBox()
    Me.txtHSqFt = New System.Windows.Forms.TextBox()
    Me.Label22 = New System.Windows.Forms.Label()
    Me.Label19 = New System.Windows.Forms.Label()
    Me.Label20 = New System.Windows.Forms.Label()
    Me.Label21 = New System.Windows.Forms.Label()
    Me.btnAdd = New System.Windows.Forms.Button()
    Me.btnExit = New System.Windows.Forms.Button()
    Me.grbApt.SuspendLayout()
    Me.grbCom.SuspendLayout()
    Me.grbHome.SuspendLayout()
    Me.SuspendLayout()
    '
    '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, 8)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing.Size(104, 20)
    Me.Label1.TabIndex = 0
    Me.Label1.Text = "Property Address: "
    Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label2
    '
    Me.Label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label2.Location = New System.Drawing.Point(8, 32)
    Me.Label2.Name = "Label2"
    Me.Label2.Size = New System.Drawing.Size(104, 20)
    Me.Label2.TabIndex = 1
    Me.Label2.Text = "Purchase Price: "
    Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label3
    '
    Me.Label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label3.Location = New System.Drawing.Point(8, 56)
    Me.Label3.Name = "Label3"
    Me.Label3.Size = New System.Drawing.Size(104, 20)
    Me.Label3.TabIndex = 2
    Me.Label3.Text = "Monthy Payment: "
    Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label4
    '
    Me.Label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label4.Location = New System.Drawing.Point(8, 80)
    Me.Label4.Name = "Label4"
    Me.Label4.Size = New System.Drawing.Size(104, 20)
    Me.Label4.TabIndex = 3
    Me.Label4.Text = "Property Taxes: "
    Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'txtAddress
    '
    Me.txtAddress.Location = New System.Drawing.Point(112, 8)
    Me.txtAddress.Name = "txtAddress"
    Me.txtAddress.Size = New System.Drawing.Size(168, 20)
    Me.txtAddress.TabIndex = 1
    Me.txtAddress.Text = "txtAddress"
    '
    'txtPrice
    '
    Me.txtPrice.Location = New System.Drawing.Point(112, 32)
    Me.txtPrice.Name = "txtPrice"
    Me.txtPrice.Size = New System.Drawing.Size(168, 20)
    Me.txtPrice.TabIndex = 2
    Me.txtPrice.Text = "txtPrice"
    '
    'txtMonthlyPay
    '
    Me.txtMonthlyPay.Location = New System.Drawing.Point(112, 56)
    Me.txtMonthlyPay.Name = "txtMonthlyPay"
    Me.txtMonthlyPay.Size = New System.Drawing.Size(168, 20)
    Me.txtMonthlyPay.TabIndex = 3
    Me.txtMonthlyPay.Text = "txtMonthlyPay"
    '
    'txtTaxes
    '
    Me.txtTaxes.Location = New System.Drawing.Point(112, 80)
    Me.txtTaxes.Name = "txtTaxes"
    Me.txtTaxes.Size = New System.Drawing.Size(168, 20)
    Me.txtTaxes.TabIndex = 4
    Me.txtTaxes.Text = "txtTaxes"
    '
    'Label5
    '
    Me.Label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label5.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label5.Location = New System.Drawing.Point(8, 104)
    Me.Label5.Name = "Label5"
    Me.Label5.Size = New System.Drawing.Size(104, 21)
    Me.Label5.TabIndex = 8
    Me.Label5.Text = "Property Type: "
    Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'cmbPropertyType
    '
    Me.cmbPropertyType.Location = New System.Drawing.Point(112, 104)
    Me.cmbPropertyType.Name = "cmbPropertyType"
    Me.cmbPropertyType.Size = New System.Drawing.Size(168, 21)
    Me.cmbPropertyType.TabIndex = 5
    Me.cmbPropertyType.Text = "cmbPropertyType"
    '
    'grbApt
    '
    Me.grbApt.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtAOccup, Me.txtARent, Me.txtAUnits, Me.Label8, Me.Label7, Me.Label6})
    Me.grbApt.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.grbApt.Location = New System.Drawing.Point(8, 136)
    Me.grbApt.Name = "grbApt"
    Me.grbApt.Size = New System.Drawing.Size(136, 112)
    Me.grbApt.TabIndex = 10
    Me.grbApt.TabStop = False
    Me.grbApt.Text = "Apartment:"
    '
    'txtAOccup
    '
    Me.txtAOccup.Location = New System.Drawing.Point(88, 64)
    Me.txtAOccup.Name = "txtAOccup"
    Me.txtAOccup.Size = New System.Drawing.Size(40, 20)
    Me.txtAOccup.TabIndex = 8
    Me.txtAOccup.Text = "txtAOccup"
    '
    'txtARent
    '
    Me.txtARent.Location = New System.Drawing.Point(88, 40)
    Me.txtARent.Name = "txtARent"
    Me.txtARent.Size = New System.Drawing.Size(40, 20)
    Me.txtARent.TabIndex = 7
    Me.txtARent.Text = "txtARent"
    '
    'txtAUnits
    '
    Me.txtAUnits.Location = New System.Drawing.Point(88, 16)
    Me.txtAUnits.Name = "txtAUnits"
    Me.txtAUnits.Size = New System.Drawing.Size(40, 20)
    Me.txtAUnits.TabIndex = 6
    Me.txtAUnits.Text = "txtAUnits"
    '
    'Label8
    '
    Me.Label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label8.Location = New System.Drawing.Point(8, 64)
    Me.Label8.Name = "Label8"
    Me.Label8.Size = New System.Drawing.Size(80, 20)
    Me.Label8.TabIndex = 3
    Me.Label8.Text = "Occup. Rate:"
    Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label7
    '
    Me.Label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label7.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label7.Location = New System.Drawing.Point(8, 40)
    Me.Label7.Name = "Label7"
    Me.Label7.Size = New System.Drawing.Size(80, 20)
    Me.Label7.TabIndex = 2
    Me.Label7.Text = "Rent/unit/mo."
    Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label6
    '
    Me.Label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label6.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label6.Location = New System.Drawing.Point(8, 16)
    Me.Label6.Name = "Label6"
    Me.Label6.Size = New System.Drawing.Size(80, 20)
    Me.Label6.TabIndex = 1
    Me.Label6.Text = "Units:"
    Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'grbCom
    '
    Me.grbCom.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtCPark, Me.txtCRent, Me.txtCSqFt, Me.Label11, Me.Label10, Me.Label9})
    Me.grbCom.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.grbCom.Location = New System.Drawing.Point(152, 136)
    Me.grbCom.Name = "grbCom"
    Me.grbCom.Size = New System.Drawing.Size(136, 112)
    Me.grbCom.TabIndex = 11
    Me.grbCom.TabStop = False
    Me.grbCom.Text = "Commercial:"
    '
    'txtCPark
    '
    Me.txtCPark.Location = New System.Drawing.Point(88, 64)
    Me.txtCPark.Name = "txtCPark"
    Me.txtCPark.Size = New System.Drawing.Size(40, 20)
    Me.txtCPark.TabIndex = 11
    Me.txtCPark.Text = "txtCPark"
    '
    'txtCRent
    '
    Me.txtCRent.Location = New System.Drawing.Point(88, 40)
    Me.txtCRent.Name = "txtCRent"
    Me.txtCRent.Size = New System.Drawing.Size(40, 20)
    Me.txtCRent.TabIndex = 10
    Me.txtCRent.Text = "txtCRent"
    '
    'txtCSqFt
    '
    Me.txtCSqFt.Location = New System.Drawing.Point(88, 16)
    Me.txtCSqFt.Name = "txtCSqFt"
    Me.txtCSqFt.Size = New System.Drawing.Size(40, 20)
    Me.txtCSqFt.TabIndex = 9
    Me.txtCSqFt.Text = "txtCSqFt"
    '
    'Label11
    '
    Me.Label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label11.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label11.Location = New System.Drawing.Point(8, 64)
    Me.Label11.Name = "Label11"
    Me.Label11.Size = New System.Drawing.Size(80, 20)
    Me.Label11.TabIndex = 5
    Me.Label11.Text = "Parking spots"
    Me.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label10
    '
    Me.Label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label10.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label10.Location = New System.Drawing.Point(8, 40)
    Me.Label10.Name = "Label10"
    Me.Label10.Size = New System.Drawing.Size(80, 20)
    Me.Label10.TabIndex = 4
    Me.Label10.Text = "Rent/sq. ft.."
    Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label9
    '
    Me.Label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label9.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label9.Location = New System.Drawing.Point(8, 16)
    Me.Label9.Name = "Label9"
    Me.Label9.Size = New System.Drawing.Size(80, 20)
    Me.Label9.TabIndex = 3
    Me.Label9.Text = "Square ft."
    Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'grbHome
    '
    Me.grbHome.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtBaths, Me.txtBedrooms, Me.txtHRent, Me.txtHSqFt, Me.Label22, Me.Label19, Me.Label20, Me.Label21})
    Me.grbHome.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.grbHome.Location = New System.Drawing.Point(296, 136)
    Me.grbHome.Name = "grbHome"
    Me.grbHome.Size = New System.Drawing.Size(136, 112)
    Me.grbHome.TabIndex = 14
    Me.grbHome.TabStop = False
    Me.grbHome.Text = "Home: "
    '
    'txtBaths
    '
    Me.txtBaths.Location = New System.Drawing.Point(88, 88)
    Me.txtBaths.Name = "txtBaths"
    Me.txtBaths.Size = New System.Drawing.Size(40, 20)
    Me.txtBaths.TabIndex = 15
    Me.txtBaths.Text = "txtBaths"
    '
    'txtBedrooms
    '
    Me.txtBedrooms.Location = New System.Drawing.Point(88, 64)
    Me.txtBedrooms.Name = "txtBedrooms"
    Me.txtBedrooms.Size = New System.Drawing.Size(40, 20)
    Me.txtBedrooms.TabIndex = 14
    Me.txtBedrooms.Text = "txtBedrooms"
    '
    'txtHRent
    '
    Me.txtHRent.Location = New System.Drawing.Point(88, 40)
    Me.txtHRent.Name = "txtHRent"
    Me.txtHRent.Size = New System.Drawing.Size(40, 20)
    Me.txtHRent.TabIndex = 13
    Me.txtHRent.Text = "txtHRent"
    '
    'txtHSqFt
    '
    Me.txtHSqFt.Location = New System.Drawing.Point(88, 16)
    Me.txtHSqFt.Name = "txtHSqFt"
    Me.txtHSqFt.Size = New System.Drawing.Size(40, 20)
    Me.txtHSqFt.TabIndex = 12
    Me.txtHSqFt.Text = "txtHSqFt"
    '
    'Label22
    '
    Me.Label22.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label22.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label22.Location = New System.Drawing.Point(8, 88)
    Me.Label22.Name = "Label22"
    Me.Label22.Size = New System.Drawing.Size(80, 20)
    Me.Label22.TabIndex = 10
    Me.Label22.Text = "Baths:"
    Me.Label22.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label19
    '
    Me.Label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label19.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label19.Location = New System.Drawing.Point(8, 64)
    Me.Label19.Name = "Label19"
    Me.Label19.Size = New System.Drawing.Size(80, 20)
    Me.Label19.TabIndex = 9
    Me.Label19.Text = "Bedrooms"
    Me.Label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label20
    '
    Me.Label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label20.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label20.Location = New System.Drawing.Point(8, 40)
    Me.Label20.Name = "Label20"
    Me.Label20.Size = New System.Drawing.Size(80, 20)
    Me.Label20.TabIndex = 8
    Me.Label20.Text = "Rent/mo."
    Me.Label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'Label21
    '
    Me.Label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
    Me.Label21.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.Label21.Location = New System.Drawing.Point(8, 16)
    Me.Label21.Name = "Label21"
    Me.Label21.Size = New System.Drawing.Size(80, 20)
    Me.Label21.TabIndex = 7
    Me.Label21.Text = "Square ft."
    Me.Label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight
    '
    'btnAdd
    '
    Me.btnAdd.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnAdd.Location = New System.Drawing.Point(304, 16)
    Me.btnAdd.Name = "btnAdd"
    Me.btnAdd.Size = New System.Drawing.Size(128, 24)
    Me.btnAdd.TabIndex = 16
    Me.btnAdd.Text = "&Add Property"
    '
    '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(304, 96)
    Me.btnExit.Name = "btnExit"
    Me.btnExit.Size = New System.Drawing.Size(128, 24)
    Me.btnExit.TabIndex = 17
    Me.btnExit.Text = "E&xit"
    '
    'frmBuilding
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(456, 253)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnExit, Me.btnAdd, Me.grbHome, Me.grbCom, Me.grbApt, Me.cmbPropertyType, Me.Label5, Me.txtTaxes, Me.txtMonthlyPay, Me.txtPrice, Me.txtAddress, Me.Label4, Me.Label3, Me.Label2, Me.Label1})
    Me.Name = "frmBuilding"
    Me.Text = "Building"
    Me.grbApt.ResumeLayout(False)
    Me.grbCom.ResumeLayout(False)
    Me.grbHome.ResumeLayout(False)
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub frmBuilding_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    cmbPropertyType.Items.Add("Apartment")
    cmbPropertyType.Items.Add("Commercial")
    cmbPropertyType.Items.Add("Home")
    cmbPropertyType.SelectedIndex = 0
    grbApt.Visible = False
    grbCom.Visible = False
    grbHome.Visible = False

  End Sub

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


  Private Sub cmbPropertyType_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbPropertyType.Leave
    Select Case cmbPropertyType.SelectedIndex
      Case 0    ' Apartment
        grbApt.Visible = True
        MyApartment.Address = txtAddress.Text
        MyApartment.PurchasePrice = CDbl(txtPrice.Text)
        MyApartment.MonthlyPayment = CDbl(txtMonthlyPay.Text)
        MyApartment.Taxes = CDbl(txtTaxes.Text)
        txtAUnits.Focus()

      Case 1    ' Commercial
        grbCom.Visible = True
        MyBuilding.Address = txtAddress.Text
        MyBuilding.PurchasePrice = CDbl(txtPrice.Text)
        MyBuilding.MonthlyPayment = CDbl(txtMonthlyPay.Text)
        MyBuilding.Taxes = CDbl(txtTaxes.Text)
        txtCSqFt.Focus()

      Case 2    ' Home
        grbHome.Visible = True
        MyHome.Address = txtAddress.Text
        MyHome.PurchasePrice = CDbl(txtPrice.Text)
        MyHome.MonthlyPayment = CDbl(txtMonthlyPay.Text)
        MyHome.Taxes = CDbl(txtTaxes.Text)
        txtHSqFt.Focus()
    End Select
  End Sub

  Private Sub cmbPropertyType_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbPropertyType.Enter
    grbApt.Visible = False
    grbCom.Visible = False
    grbHome.Visible = False

  End Sub

  Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
    Select Case cmbPropertyType.SelectedIndex
      Case 0    ' Apartment
        MyApartment.DisplayBuilding()

      Case 1    ' Commercial
        MyBuilding.DisplayBuilding()

      Case 2    ' Home
        MyHome.DisplayBuilding()

    End Select

  End Sub

  Private Sub txtAUnits_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtAUnits.Leave
    MyApartment.Units = CInt(txtAUnits.Text)
  End Sub

  Private Sub txtARent_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtARent.Leave
    MyApartment.Rents = CDbl(txtARent.Text)
  End Sub

  Private Sub txtAOccup_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtAOccup.Leave
    MyApartment.OccupancyRate = CDbl(txtAOccup.Text)
  End Sub
End Class
