' Project RealEstate, source code file frmHouse.vb. Public Class frmHouse 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 txtAddress As System.Windows.Forms.TextBox Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents txtCity As System.Windows.Forms.TextBox Friend WithEvents Label2 As System.Windows.Forms.Label Friend WithEvents txtBedrooms As System.Windows.Forms.TextBox Friend WithEvents Label3 As System.Windows.Forms.Label Friend WithEvents txtBathrooms As System.Windows.Forms.TextBox Friend WithEvents Label4 As System.Windows.Forms.Label Friend WithEvents Label5 As System.Windows.Forms.Label Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents txtPrice As System.Windows.Forms.TextBox Private Sub InitializeComponent() Me.txtAddress = New System.Windows.Forms.TextBox Me.Label1 = New System.Windows.Forms.Label Me.txtCity = New System.Windows.Forms.TextBox Me.Label2 = New System.Windows.Forms.Label Me.txtBedrooms = New System.Windows.Forms.TextBox Me.Label3 = New System.Windows.Forms.Label Me.txtBathrooms = New System.Windows.Forms.TextBox Me.Label4 = New System.Windows.Forms.Label Me.txtPrice = New System.Windows.Forms.TextBox Me.Label5 = New System.Windows.Forms.Label Me.Button1 = New System.Windows.Forms.Button Me.SuspendLayout() ' 'txtAddress ' Me.txtAddress.Location = New System.Drawing.Point(128, 16) Me.txtAddress.Name = "txtAddress" Me.txtAddress.Size = New System.Drawing.Size(152, 24) Me.txtAddress.TabIndex = 0 Me.txtAddress.Text = "" ' 'Label1 ' Me.Label1.Location = New System.Drawing.Point(48, 16) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(72, 24) Me.Label1.TabIndex = 1 Me.Label1.Text = "Address" Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'txtCity ' Me.txtCity.Location = New System.Drawing.Point(128, 48) Me.txtCity.Name = "txtCity" Me.txtCity.Size = New System.Drawing.Size(152, 24) Me.txtCity.TabIndex = 2 Me.txtCity.Text = "" ' 'Label2 ' Me.Label2.Location = New System.Drawing.Point(80, 48) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(40, 24) Me.Label2.TabIndex = 3 Me.Label2.Text = "City" Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'txtBedrooms ' Me.txtBedrooms.Location = New System.Drawing.Point(128, 80) Me.txtBedrooms.Name = "txtBedrooms" Me.txtBedrooms.Size = New System.Drawing.Size(152, 24) Me.txtBedrooms.TabIndex = 4 Me.txtBedrooms.Text = "" ' 'Label3 ' Me.Label3.Location = New System.Drawing.Point(40, 80) Me.Label3.Name = "Label3" Me.Label3.Size = New System.Drawing.Size(80, 24) Me.Label3.TabIndex = 5 Me.Label3.Text = "Bedrooms" Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'txtBathrooms ' Me.txtBathrooms.Location = New System.Drawing.Point(128, 112) Me.txtBathrooms.Name = "txtBathrooms" Me.txtBathrooms.Size = New System.Drawing.Size(152, 24) Me.txtBathrooms.TabIndex = 6 Me.txtBathrooms.Text = "" ' 'Label4 ' Me.Label4.Location = New System.Drawing.Point(32, 112) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(88, 24) Me.Label4.TabIndex = 7 Me.Label4.Text = "Bathrooms" Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'txtPrice ' Me.txtPrice.Location = New System.Drawing.Point(128, 144) Me.txtPrice.Name = "txtPrice" Me.txtPrice.Size = New System.Drawing.Size(152, 24) Me.txtPrice.TabIndex = 8 Me.txtPrice.Text = "" ' 'Label5 ' Me.Label5.Location = New System.Drawing.Point(72, 144) Me.Label5.Name = "Label5" Me.Label5.Size = New System.Drawing.Size(48, 24) Me.Label5.TabIndex = 9 Me.Label5.Text = "Price" Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(128, 176) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(152, 32) Me.Button1.TabIndex = 10 Me.Button1.Text = "OK" ' 'frmHouse ' Me.AutoScaleBaseSize = New System.Drawing.Size(8, 17) Me.ClientSize = New System.Drawing.Size(296, 222) Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.Label5) Me.Controls.Add(Me.txtPrice) Me.Controls.Add(Me.Label4) Me.Controls.Add(Me.txtBathrooms) Me.Controls.Add(Me.Label3) Me.Controls.Add(Me.txtBedrooms) Me.Controls.Add(Me.Label2) Me.Controls.Add(Me.txtCity) Me.Controls.Add(Me.Label1) Me.Controls.Add(Me.txtAddress) Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Name = "frmHouse" Me.Text = "House Details" Me.ResumeLayout(False) End Sub #End Region ' Unselect address textbox when house dialog is displayed. Private Sub frmHouse_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load txtAddress.SelectionLength = 0 End Sub ' Hide house dialog when OK button is clicked. Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() End Sub End Class