Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
- Partial Class Form1
- Inherits System.Windows.Forms.Form
- Dim store1 As Single
- Dim store2 As Single
- Dim answer As Single
- Dim sing As Char
- 'Form overrides dispose to clean up the component list.
- <System.Diagnostics.DebuggerNonUserCode()> _
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- Try
- If disposing AndAlso components IsNot Nothing Then
- components.Dispose()
- End If
- Finally
- MyBase.Dispose(disposing)
- End Try
- 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.
- <System.Diagnostics.DebuggerStepThrough()> _
- Private Sub InitializeComponent()
- Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
- Me.output = New System.Windows.Forms.TextBox()
- Me.submit = New System.Windows.Forms.Button()
- Me.GroupBox1 = New System.Windows.Forms.GroupBox()
- Me.num0 = New System.Windows.Forms.Button()
- Me.num4 = New System.Windows.Forms.Button()
- Me.num9 = New System.Windows.Forms.Button()
- Me.num8 = New System.Windows.Forms.Button()
- Me.num7 = New System.Windows.Forms.Button()
- Me.num6 = New System.Windows.Forms.Button()
- Me.num5 = New System.Windows.Forms.Button()
- Me.num3 = New System.Windows.Forms.Button()
- Me.num2 = New System.Windows.Forms.Button()
- Me.num1 = New System.Windows.Forms.Button()
- Me.clear = New System.Windows.Forms.Button()
- Me.GroupBox2 = New System.Windows.Forms.GroupBox()
- Me.divi = New System.Windows.Forms.Button()
- Me.multi = New System.Windows.Forms.Button()
- Me.subs = New System.Windows.Forms.Button()
- Me.add = New System.Windows.Forms.Button()
- Me.Quit = New System.Windows.Forms.Button()
- Me.delchar = New System.Windows.Forms.Button()
- Me.ShapeContainer1 = New Microsoft.VisualBasic.PowerPacks.ShapeContainer()
- Me.OvalShape1 = New Microsoft.VisualBasic.PowerPacks.OvalShape()
- Me.FileToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
- Me.QuitNowToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
- Me.AboutToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
- Me.MenuStrip1 = New System.Windows.Forms.MenuStrip()
- Me.StatusStrip1 = New System.Windows.Forms.StatusStrip()
- Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar()
- Me.GroupBox1.SuspendLayout()
- Me.GroupBox2.SuspendLayout()
- Me.MenuStrip1.SuspendLayout()
- Me.StatusStrip1.SuspendLayout()
- Me.SuspendLayout()
- '
- 'output
- '
- Me.output.Location = New System.Drawing.Point(12, 95)
- Me.output.Name = "output"
- Me.output.Size = New System.Drawing.Size(294, 20)
- Me.output.TabIndex = 0
- '
- 'submit
- '
- Me.submit.Location = New System.Drawing.Point(325, 81)
- Me.submit.Name = "submit"
- Me.submit.Size = New System.Drawing.Size(57, 34)
- Me.submit.TabIndex = 1
- Me.submit.Text = "Enter"
- Me.submit.UseVisualStyleBackColor = True
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.Add(Me.num0)
- Me.GroupBox1.Controls.Add(Me.num4)
- Me.GroupBox1.Controls.Add(Me.num9)
- Me.GroupBox1.Controls.Add(Me.num8)
- Me.GroupBox1.Controls.Add(Me.num7)
- Me.GroupBox1.Controls.Add(Me.num6)
- Me.GroupBox1.Controls.Add(Me.num5)
- Me.GroupBox1.Controls.Add(Me.num3)
- Me.GroupBox1.Controls.Add(Me.num2)
- Me.GroupBox1.Controls.Add(Me.num1)
- Me.GroupBox1.Location = New System.Drawing.Point(26, 149)
- Me.GroupBox1.Name = "GroupBox1"
- Me.GroupBox1.Size = New System.Drawing.Size(253, 273)
- Me.GroupBox1.TabIndex = 2
- Me.GroupBox1.TabStop = False
- Me.GroupBox1.Text = " Variables"
- '
- 'num0
- '
- Me.num0.Location = New System.Drawing.Point(56, 221)
- Me.num0.Name = "num0"
- Me.num0.Size = New System.Drawing.Size(133, 38)
- Me.num0.TabIndex = 10
- Me.num0.Text = "0"
- Me.num0.UseVisualStyleBackColor = True
- '
- 'num4
- '
- Me.num4.Location = New System.Drawing.Point(13, 102)
- Me.num4.Name = "num4"
- Me.num4.Size = New System.Drawing.Size(44, 34)
- Me.num4.TabIndex = 9
- Me.num4.Text = "4"
- Me.num4.UseVisualStyleBackColor = True
- '
- 'num9
- '
- Me.num9.Location = New System.Drawing.Point(189, 174)
- Me.num9.Name = "num9"
- Me.num9.Size = New System.Drawing.Size(44, 34)
- Me.num9.TabIndex = 8
- Me.num9.Text = "9"
- Me.num9.UseVisualStyleBackColor = True
- '
- 'num8
- '
- Me.num8.Location = New System.Drawing.Point(97, 174)
- Me.num8.Name = "num8"
- Me.num8.Size = New System.Drawing.Size(44, 34)
- Me.num8.TabIndex = 7
- Me.num8.Text = "8"
- Me.num8.UseVisualStyleBackColor = True
- '
- 'num7
- '
- Me.num7.Location = New System.Drawing.Point(13, 174)
- Me.num7.Name = "num7"
- Me.num7.Size = New System.Drawing.Size(44, 34)
- Me.num7.TabIndex = 6
- Me.num7.Text = "7"
- Me.num7.UseVisualStyleBackColor = True
- '
- 'num6
- '
- Me.num6.Location = New System.Drawing.Point(189, 102)
- Me.num6.Name = "num6"
- Me.num6.Size = New System.Drawing.Size(44, 34)
- Me.num6.TabIndex = 5
- Me.num6.Text = "6"
- Me.num6.UseVisualStyleBackColor = True
- '
- 'num5
- '
- Me.num5.Location = New System.Drawing.Point(97, 102)
- Me.num5.Name = "num5"
- Me.num5.Size = New System.Drawing.Size(44, 34)
- Me.num5.TabIndex = 4
- Me.num5.Text = "5"
- Me.num5.UseVisualStyleBackColor = True
- '
- 'num3
- '
- Me.num3.Location = New System.Drawing.Point(189, 36)
- Me.num3.Name = "num3"
- Me.num3.Size = New System.Drawing.Size(44, 34)
- Me.num3.TabIndex = 2
- Me.num3.Text = "3"
- Me.num3.UseVisualStyleBackColor = True
- '
- 'num2
- '
- Me.num2.Location = New System.Drawing.Point(97, 36)
- Me.num2.Name = "num2"
- Me.num2.Size = New System.Drawing.Size(44, 34)
- Me.num2.TabIndex = 1
- Me.num2.Text = "2"
- Me.num2.UseVisualStyleBackColor = True
- '
- 'num1
- '
- Me.num1.Location = New System.Drawing.Point(13, 36)
- Me.num1.Name = "num1"
- Me.num1.Size = New System.Drawing.Size(44, 34)
- Me.num1.TabIndex = 0
- Me.num1.Text = "1"
- Me.num1.UseVisualStyleBackColor = True
- '
- 'clear
- '
- Me.clear.Location = New System.Drawing.Point(388, 87)
- Me.clear.Name = "clear"
- Me.clear.Size = New System.Drawing.Size(46, 28)
- Me.clear.TabIndex = 3
- Me.clear.Text = "( C )"
- Me.clear.UseVisualStyleBackColor = True
- '
- 'GroupBox2
- '
- Me.GroupBox2.Controls.Add(Me.divi)
- Me.GroupBox2.Controls.Add(Me.multi)
- Me.GroupBox2.Controls.Add(Me.subs)
- Me.GroupBox2.Controls.Add(Me.add)
- Me.GroupBox2.Location = New System.Drawing.Point(295, 161)
- Me.GroupBox2.Name = "GroupBox2"
- Me.GroupBox2.Size = New System.Drawing.Size(138, 260)
- Me.GroupBox2.TabIndex = 4
- Me.GroupBox2.TabStop = False
- Me.GroupBox2.Text = " Operators"
- '
- 'divi
- '
- Me.divi.Location = New System.Drawing.Point(19, 200)
- Me.divi.Name = "divi"
- Me.divi.Size = New System.Drawing.Size(68, 34)
- Me.divi.TabIndex = 3
- Me.divi.Text = "/"
- Me.divi.UseVisualStyleBackColor = True
- '
- 'multi
- '
- Me.multi.Location = New System.Drawing.Point(19, 143)
- Me.multi.Name = "multi"
- Me.multi.Size = New System.Drawing.Size(68, 34)
- Me.multi.TabIndex = 2
- Me.multi.Text = "X"
- Me.multi.UseVisualStyleBackColor = True
- '
- 'subs
- '
- Me.subs.Location = New System.Drawing.Point(18, 87)
- Me.subs.Name = "subs"
- Me.subs.Size = New System.Drawing.Size(68, 34)
- Me.subs.TabIndex = 1
- Me.subs.Text = "-"
- Me.subs.UseVisualStyleBackColor = True
- '
- 'add
- '
- Me.add.Location = New System.Drawing.Point(18, 34)
- Me.add.Name = "add"
- Me.add.Size = New System.Drawing.Size(68, 34)
- Me.add.TabIndex = 0
- Me.add.Text = "+"
- Me.add.UseVisualStyleBackColor = True
- '
- 'Quit
- '
- Me.Quit.Location = New System.Drawing.Point(11, 434)
- Me.Quit.Name = "Quit"
- Me.Quit.Size = New System.Drawing.Size(421, 29)
- Me.Quit.TabIndex = 5
- Me.Quit.Text = "Quit"
- Me.Quit.UseVisualStyleBackColor = True
- '
- 'delchar
- '
- Me.delchar.Location = New System.Drawing.Point(360, 121)
- Me.delchar.Name = "delchar"
- Me.delchar.Size = New System.Drawing.Size(46, 28)
- Me.delchar.TabIndex = 7
- Me.delchar.Text = "( D )"
- Me.delchar.UseVisualStyleBackColor = True
- '
- 'ShapeContainer1
- '
- Me.ShapeContainer1.Location = New System.Drawing.Point(0, 0)
- Me.ShapeContainer1.Margin = New System.Windows.Forms.Padding(0)
- Me.ShapeContainer1.Name = "ShapeContainer1"
- Me.ShapeContainer1.Shapes.AddRange(New Microsoft.VisualBasic.PowerPacks.Shape() {Me.OvalShape1})
- Me.ShapeContainer1.Size = New System.Drawing.Size(447, 516)
- Me.ShapeContainer1.TabIndex = 8
- Me.ShapeContainer1.TabStop = False
- '
- 'OvalShape1
- '
- Me.OvalShape1.Location = New System.Drawing.Point(421, 3)
- Me.OvalShape1.Name = "OvalShape1"
- Me.OvalShape1.Size = New System.Drawing.Size(22, 24)
- '
- 'FileToolStripMenuItem
- '
- Me.FileToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.QuitNowToolStripMenuItem})
- Me.FileToolStripMenuItem.Name = "FileToolStripMenuItem"
- Me.FileToolStripMenuItem.Size = New System.Drawing.Size(76, 20)
- Me.FileToolStripMenuItem.Text = "Main Main"
- '
- 'QuitNowToolStripMenuItem
- '
- Me.QuitNowToolStripMenuItem.Name = "QuitNowToolStripMenuItem"
- Me.QuitNowToolStripMenuItem.Size = New System.Drawing.Size(125, 22)
- Me.QuitNowToolStripMenuItem.Text = "Quit Now"
- '
- 'AboutToolStripMenuItem
- '
- Me.AboutToolStripMenuItem.Name = "AboutToolStripMenuItem"
- Me.AboutToolStripMenuItem.Size = New System.Drawing.Size(52, 20)
- Me.AboutToolStripMenuItem.Text = "About"
- '
- 'MenuStrip1
- '
- Me.MenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.FileToolStripMenuItem, Me.AboutToolStripMenuItem})
- Me.MenuStrip1.Location = New System.Drawing.Point(0, 0)
- Me.MenuStrip1.Name = "MenuStrip1"
- Me.MenuStrip1.Size = New System.Drawing.Size(447, 24)
- Me.MenuStrip1.TabIndex = 6
- Me.MenuStrip1.Text = "MenuStrip1"
- '
- 'StatusStrip1
- '
- Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripProgressBar1})
- Me.StatusStrip1.Location = New System.Drawing.Point(0, 494)
- Me.StatusStrip1.Name = "StatusStrip1"
- Me.StatusStrip1.Size = New System.Drawing.Size(447, 22)
- Me.StatusStrip1.TabIndex = 9
- Me.StatusStrip1.Text = "StatusStrip1"
- '
- 'ToolStripProgressBar1
- '
- Me.ToolStripProgressBar1.Name = "ToolStripProgressBar1"
- Me.ToolStripProgressBar1.Size = New System.Drawing.Size(100, 16)
- '
- 'Form1
- '
- Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.ClientSize = New System.Drawing.Size(447, 516)
- Me.Controls.Add(Me.StatusStrip1)
- Me.Controls.Add(Me.delchar)
- Me.Controls.Add(Me.Quit)
- Me.Controls.Add(Me.GroupBox2)
- Me.Controls.Add(Me.clear)
- Me.Controls.Add(Me.GroupBox1)
- Me.Controls.Add(Me.submit)
- Me.Controls.Add(Me.output)
- Me.Controls.Add(Me.MenuStrip1)
- Me.Controls.Add(Me.ShapeContainer1)
- Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
- Me.MainMenuStrip = Me.MenuStrip1
- Me.Name = "Form1"
- Me.Text = "Calculator"
- Me.GroupBox1.ResumeLayout(False)
- Me.GroupBox2.ResumeLayout(False)
- Me.MenuStrip1.ResumeLayout(False)
- Me.MenuStrip1.PerformLayout()
- Me.StatusStrip1.ResumeLayout(False)
- Me.StatusStrip1.PerformLayout()
- Me.ResumeLayout(False)
- Me.PerformLayout()
- End Sub
- Friend WithEvents output As System.Windows.Forms.TextBox
- Friend WithEvents submit As System.Windows.Forms.Button
- Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
- Friend WithEvents num9 As System.Windows.Forms.Button
- Friend WithEvents num8 As System.Windows.Forms.Button
- Friend WithEvents num7 As System.Windows.Forms.Button
- Friend WithEvents num6 As System.Windows.Forms.Button
- Friend WithEvents num5 As System.Windows.Forms.Button
- Friend WithEvents num3 As System.Windows.Forms.Button
- Friend WithEvents num2 As System.Windows.Forms.Button
- Friend WithEvents num1 As System.Windows.Forms.Button
- Friend WithEvents clear As System.Windows.Forms.Button
- Friend WithEvents num0 As System.Windows.Forms.Button
- Friend WithEvents num4 As System.Windows.Forms.Button
- Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
- Friend WithEvents divi As System.Windows.Forms.Button
- Friend WithEvents multi As System.Windows.Forms.Button
- Friend WithEvents subs As System.Windows.Forms.Button
- Friend WithEvents add As System.Windows.Forms.Button
- Friend WithEvents Quit As System.Windows.Forms.Button
- Private Sub num4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub Close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Quit.Click
- Close()
- End Sub
- Private Sub QuitNowToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles QuitNowToolStripMenuItem.Click
- Close()
- End Sub
- Private Sub output_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles output.TextChanged
- End Sub
- Private Sub num1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num1.Click
- output.AppendText(1)
- End Sub
- Private Sub num2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num2.Click
- output.AppendText(2)
- End Sub
- Private Sub num3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num3.Click
- output.AppendText(3)
- End Sub
- Private Sub num4_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num4.Click
- output.AppendText(4)
- End Sub
- Private Sub num5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num5.Click
- output.AppendText(5)
- End Sub
- Private Sub num6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num6.Click
- output.AppendText(6)
- End Sub
- Private Sub num7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num7.Click
- output.AppendText(7)
- End Sub
- Private Sub num8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num8.Click
- output.AppendText(8)
- End Sub
- Private Sub num9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num9.Click
- output.AppendText(9)
- End Sub
- Private Sub num0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num0.Click
- output.AppendText(0)
- End Sub
- Friend WithEvents delchar As System.Windows.Forms.Button
- Private Sub add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles add.Click
- store1 = Val(output.Text)
- sing = "+"
- output.Clear()
- End Sub
- Private Sub subs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles subs.Click
- store1 = Val(output.Text)
- sing = "-"
- output.Clear()
- End Sub
- Private Sub multi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles multi.Click
- store1 = Val(output.Text)
- sing = "*"
- output.Clear()
- End Sub
- Private Sub divi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles divi.Click
- store1 = Val(output.Text)
- sing = "/"
- output.Clear()
- End Sub
- Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click, submit.Enter
- store2 = Val(output.Text)
- If (sing = "+") Then
- answer = store1 + store2
- output.Text = answer
- ElseIf (sing = "-") Then
- answer = store1 - store2
- output.Text = answer
- ElseIf (sing = "*") Then
- answer = store1 * store2
- output.Text = answer
- ElseIf (sing = "/") Then
- answer = store1 / store2
- output.Text = answer
- End If
- End Sub
- Private Sub clear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles clear.Click
- store1 = 0
- store2 = 0
- output.Clear()
- answer = 0
- End Sub
- Friend WithEvents ShapeContainer1 As Microsoft.VisualBasic.PowerPacks.ShapeContainer
- Friend WithEvents OvalShape1 As Microsoft.VisualBasic.PowerPacks.OvalShape
- Friend WithEvents FileToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
- Friend WithEvents QuitNowToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
- Friend WithEvents AboutToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
- Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
- Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
- End Sub
- Friend WithEvents StatusStrip1 As System.Windows.Forms.StatusStrip
- Friend WithEvents ToolStripProgressBar1 As System.Windows.Forms.ToolStripProgressBar
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement