Public Class Form1 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 Label1 As System.Windows.Forms.Label Friend WithEvents Label2 As System.Windows.Forms.Label Friend WithEvents Label3 As System.Windows.Forms.Label Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents Label4 As System.Windows.Forms.Label Friend WithEvents TextBox3 As System.Windows.Forms.TextBox Friend WithEvents Label5 As System.Windows.Forms.Label Friend WithEvents TextBox4 As System.Windows.Forms.TextBox Friend WithEvents Label6 As System.Windows.Forms.Label Friend WithEvents Label7 As System.Windows.Forms.Label Friend WithEvents YourName As System.Windows.Forms.TextBox Friend WithEvents Address As System.Windows.Forms.TextBox Friend WithEvents Zip As System.Windows.Forms.TextBox Friend WithEvents CalcButton As System.Windows.Forms.Button Friend WithEvents ClearButton As System.Windows.Forms.Button Friend WithEvents ExitButton As System.Windows.Forms.Button 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 Price As System.Windows.Forms.TextBox Friend WithEvents Label11 As System.Windows.Forms.Label Friend WithEvents Label12 As System.Windows.Forms.Label Friend WithEvents Label13 As System.Windows.Forms.Label Friend WithEvents Quantity As System.Windows.Forms.Label Friend WithEvents Blue As System.Windows.Forms.TextBox Friend WithEvents Yellow As System.Windows.Forms.TextBox Friend WithEvents Total As System.Windows.Forms.Label 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.YourName = New System.Windows.Forms.TextBox Me.TextBox1 = New System.Windows.Forms.TextBox Me.Address = New System.Windows.Forms.TextBox Me.Label4 = New System.Windows.Forms.Label Me.TextBox3 = New System.Windows.Forms.TextBox Me.Label5 = New System.Windows.Forms.Label Me.TextBox4 = New System.Windows.Forms.TextBox Me.Label6 = New System.Windows.Forms.Label Me.Zip = New System.Windows.Forms.TextBox Me.Label7 = New System.Windows.Forms.Label Me.CalcButton = New System.Windows.Forms.Button Me.ClearButton = New System.Windows.Forms.Button Me.ExitButton = New System.Windows.Forms.Button Me.Label8 = New System.Windows.Forms.Label Me.Blue = New System.Windows.Forms.TextBox Me.Label9 = New System.Windows.Forms.Label Me.Yellow = New System.Windows.Forms.TextBox Me.Label10 = New System.Windows.Forms.Label Me.Price = New System.Windows.Forms.TextBox Me.Label11 = New System.Windows.Forms.Label Me.Label12 = New System.Windows.Forms.Label Me.Label13 = New System.Windows.Forms.Label Me.Quantity = New System.Windows.Forms.Label Me.Total = New System.Windows.Forms.Label Me.SuspendLayout() ' 'Label1 ' Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label1.Location = New System.Drawing.Point(96, 8) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(232, 32) Me.Label1.TabIndex = 0 Me.Label1.Text = "Skateboard Order Form" ' 'Label2 ' Me.Label2.Location = New System.Drawing.Point(8, 344) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(120, 24) Me.Label2.TabIndex = 1 Me.Label2.Text = "BAMartin CS12" ' 'Label3 ' Me.Label3.Location = New System.Drawing.Point(24, 48) Me.Label3.Name = "Label3" Me.Label3.Size = New System.Drawing.Size(80, 16) Me.Label3.TabIndex = 2 Me.Label3.Text = "Name:" Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'YourName ' Me.YourName.Location = New System.Drawing.Point(112, 40) Me.YourName.Name = "YourName" Me.YourName.TabIndex = 3 Me.YourName.Text = "" ' 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(0, 0) Me.TextBox1.Name = "TextBox1" Me.TextBox1.TabIndex = 0 Me.TextBox1.Text = "TextBox1" ' 'Address ' Me.Address.Location = New System.Drawing.Point(112, 80) Me.Address.Name = "Address" Me.Address.TabIndex = 5 Me.Address.Text = "" ' 'Label4 ' Me.Label4.Location = New System.Drawing.Point(24, 88) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(80, 16) Me.Label4.TabIndex = 4 Me.Label4.Text = "Address:" Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'TextBox3 ' Me.TextBox3.Location = New System.Drawing.Point(112, 120) Me.TextBox3.Name = "TextBox3" Me.TextBox3.TabIndex = 7 Me.TextBox3.Text = "" ' 'Label5 ' Me.Label5.Location = New System.Drawing.Point(24, 128) Me.Label5.Name = "Label5" Me.Label5.Size = New System.Drawing.Size(80, 16) Me.Label5.TabIndex = 6 Me.Label5.Text = "City:" Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'TextBox4 ' Me.TextBox4.Location = New System.Drawing.Point(112, 160) Me.TextBox4.Name = "TextBox4" Me.TextBox4.Size = New System.Drawing.Size(24, 26) Me.TextBox4.TabIndex = 9 Me.TextBox4.Text = "" ' 'Label6 ' Me.Label6.Location = New System.Drawing.Point(24, 168) Me.Label6.Name = "Label6" Me.Label6.Size = New System.Drawing.Size(80, 16) Me.Label6.TabIndex = 8 Me.Label6.Text = "State:" Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'Zip ' Me.Zip.Location = New System.Drawing.Point(192, 160) Me.Zip.Name = "Zip" Me.Zip.Size = New System.Drawing.Size(64, 26) Me.Zip.TabIndex = 11 Me.Zip.Text = " " ' 'Label7 ' Me.Label7.Location = New System.Drawing.Point(152, 168) Me.Label7.Name = "Label7" Me.Label7.Size = New System.Drawing.Size(32, 16) Me.Label7.TabIndex = 10 Me.Label7.Text = "Zip:" Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'CalcButton ' Me.CalcButton.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(128, Byte)) Me.CalcButton.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.CalcButton.Location = New System.Drawing.Point(24, 312) Me.CalcButton.Name = "CalcButton" Me.CalcButton.Size = New System.Drawing.Size(104, 23) Me.CalcButton.TabIndex = 12 Me.CalcButton.Text = "Calculate" ' 'ClearButton ' Me.ClearButton.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(128, Byte)) Me.ClearButton.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ClearButton.Location = New System.Drawing.Point(144, 312) Me.ClearButton.Name = "ClearButton" Me.ClearButton.Size = New System.Drawing.Size(72, 23) Me.ClearButton.TabIndex = 13 Me.ClearButton.Text = "Clear" ' 'ExitButton ' Me.ExitButton.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(128, Byte)) Me.ExitButton.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ExitButton.Location = New System.Drawing.Point(240, 312) Me.ExitButton.Name = "ExitButton" Me.ExitButton.Size = New System.Drawing.Size(72, 23) Me.ExitButton.TabIndex = 14 Me.ExitButton.Text = "Exit" ' 'Label8 ' Me.Label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label8.Location = New System.Drawing.Point(16, 208) Me.Label8.Name = "Label8" Me.Label8.Size = New System.Drawing.Size(216, 24) Me.Label8.TabIndex = 15 Me.Label8.Text = "Quantity ordered" ' 'Blue ' Me.Blue.Location = New System.Drawing.Point(48, 240) Me.Blue.Name = "Blue" Me.Blue.Size = New System.Drawing.Size(48, 26) Me.Blue.TabIndex = 17 Me.Blue.Text = "" ' 'Label9 ' Me.Label9.Location = New System.Drawing.Point(112, 248) Me.Label9.Name = "Label9" Me.Label9.Size = New System.Drawing.Size(80, 16) Me.Label9.TabIndex = 16 Me.Label9.Text = "Blue" Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'Yellow ' Me.Yellow.Location = New System.Drawing.Point(48, 272) Me.Yellow.Name = "Yellow" Me.Yellow.Size = New System.Drawing.Size(48, 26) Me.Yellow.TabIndex = 19 Me.Yellow.Text = "" ' 'Label10 ' Me.Label10.Location = New System.Drawing.Point(112, 280) Me.Label10.Name = "Label10" Me.Label10.Size = New System.Drawing.Size(80, 16) Me.Label10.TabIndex = 18 Me.Label10.Text = "Yellow" Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'Price ' Me.Price.Location = New System.Drawing.Point(392, 40) Me.Price.Name = "Price" Me.Price.TabIndex = 21 Me.Price.Text = "" ' 'Label11 ' Me.Label11.Location = New System.Drawing.Point(304, 48) Me.Label11.Name = "Label11" Me.Label11.Size = New System.Drawing.Size(80, 16) Me.Label11.TabIndex = 20 Me.Label11.Text = "Price:" Me.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'Label12 ' Me.Label12.Location = New System.Drawing.Point(304, 224) Me.Label12.Name = "Label12" Me.Label12.Size = New System.Drawing.Size(88, 24) Me.Label12.TabIndex = 22 Me.Label12.Text = "Quantity:" Me.Label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'Label13 ' Me.Label13.Location = New System.Drawing.Point(296, 264) Me.Label13.Name = "Label13" Me.Label13.Size = New System.Drawing.Size(88, 24) Me.Label13.TabIndex = 23 Me.Label13.Text = "Total:" Me.Label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight ' 'Quantity ' Me.Quantity.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(192, Byte)) Me.Quantity.Location = New System.Drawing.Point(400, 224) Me.Quantity.Name = "Quantity" Me.Quantity.Size = New System.Drawing.Size(88, 24) Me.Quantity.TabIndex = 24 ' 'Total ' Me.Total.Location = New System.Drawing.Point(400, 264) Me.Total.Name = "Total" Me.Total.Size = New System.Drawing.Size(96, 24) Me.Total.TabIndex = 25 ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(8, 19) Me.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(224, Byte), CType(192, Byte)) Me.ClientSize = New System.Drawing.Size(504, 374) Me.Controls.Add(Me.Total) Me.Controls.Add(Me.Quantity) Me.Controls.Add(Me.Label13) Me.Controls.Add(Me.Label12) Me.Controls.Add(Me.Price) Me.Controls.Add(Me.Label11) Me.Controls.Add(Me.Yellow) Me.Controls.Add(Me.Label10) Me.Controls.Add(Me.Blue) Me.Controls.Add(Me.Label9) Me.Controls.Add(Me.Label8) Me.Controls.Add(Me.ExitButton) Me.Controls.Add(Me.ClearButton) Me.Controls.Add(Me.CalcButton) Me.Controls.Add(Me.Zip) Me.Controls.Add(Me.Label7) Me.Controls.Add(Me.TextBox4) Me.Controls.Add(Me.Label6) Me.Controls.Add(Me.TextBox3) Me.Controls.Add(Me.Label5) Me.Controls.Add(Me.Address) Me.Controls.Add(Me.Label4) Me.Controls.Add(Me.YourName) Me.Controls.Add(Me.Label3) Me.Controls.Add(Me.Label2) Me.Controls.Add(Me.Label1) Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Name = "Form1" Me.Text = "Form1" Me.ResumeLayout(False) End Sub #End Region Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click Me.Close() End Sub Private Sub ClearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearButton.Click Blue.Text = "" Yellow.Text = "" Price.Text = "" End Sub Private Sub CalcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalcButton.Click Quantity.Text = Val(Blue.Text) + Val(Yellow.Text) Total.Text = Format(Val(Quantity.Text) * Val(Price.Text), "Currency") End Sub End Class ''''' B.A.Martin, CS12, Skateboard Order Form VB83-153