Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Option2_Click(Inter As Integer)
'#Region
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call
'#End Region

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 TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents Button8 As System.Windows.Forms.Button
Friend WithEvents Button9 As System.Windows.Forms.Button
Friend WithEvents Button10 As System.Windows.Forms.Button
Friend WithEvents Button11 As System.Windows.Forms.Button
Friend WithEvents Button12 As System.Windows.Forms.Button
Friend WithEvents Button13 As System.Windows.Forms.Button
Friend WithEvents Button14 As System.Windows.Forms.Button
Friend WithEvents Button15 As System.Windows.Forms.Button
Friend WithEvents Button16 As System.Windows.Forms.Button
Friend WithEvents Button17 As System.Windows.Forms.Button
Friend WithEvents Button18 As System.Windows.Forms.Button
Friend WithEvents Button19 As System.Windows.Forms.Button
Friend WithEvents Button20 As System.Windows.Forms.Button
Friend WithEvents Button21 As System.Windows.Forms.Button
Friend WithEvents Button22 As System.Windows.Forms.Button
Friend WithEvents Button23 As System.Windows.Forms.Button
Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton3 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton4 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton5 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton6 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton7 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton8 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton9 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton10 As System.Windows.Forms.RadioButton
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button
Me.Button4 = New System.Windows.Forms.Button
Me.Button5 = New System.Windows.Forms.Button
Me.Button6 = New System.Windows.Forms.Button
Me.Button7 = New System.Windows.Forms.Button
Me.Button8 = New System.Windows.Forms.Button
Me.Button9 = New System.Windows.Forms.Button
Me.Button10 = New System.Windows.Forms.Button
Me.Button11 = New System.Windows.Forms.Button
Me.Button12 = New System.Windows.Forms.Button
Me.Button13 = New System.Windows.Forms.Button
Me.Button14 = New System.Windows.Forms.Button
Me.Button15 = New System.Windows.Forms.Button
Me.Button16 = New System.Windows.Forms.Button
Me.Button17 = New System.Windows.Forms.Button
Me.Button18 = New System.Windows.Forms.Button
Me.Button19 = New System.Windows.Forms.Button
Me.Button20 = New System.Windows.Forms.Button
Me.Button21 = New System.Windows.Forms.Button
Me.Button22 = New System.Windows.Forms.Button
Me.Button23 = New System.Windows.Forms.Button
Me.RadioButton1 = New System.Windows.Forms.RadioButton
Me.RadioButton2 = New System.Windows.Forms.RadioButton
Me.RadioButton3 = New System.Windows.Forms.RadioButton
Me.RadioButton4 = New System.Windows.Forms.RadioButton
Me.RadioButton5 = New System.Windows.Forms.RadioButton
Me.RadioButton6 = New System.Windows.Forms.RadioButton
Me.RadioButton7 = New System.Windows.Forms.RadioButton
Me.RadioButton8 = New System.Windows.Forms.RadioButton
Me.RadioButton9 = New System.Windows.Forms.RadioButton
Me.RadioButton10 = New System.Windows.Forms.RadioButton
Me.SuspendLayout()
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(176, 24)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(288, 20)
Me.TextBox1.TabIndex = 0
Me.TextBox1.Text = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(176, 56)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(48, 24)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Button1"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(224, 56)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(48, 24)
Me.Button2.TabIndex = 2
Me.Button2.Text = "Button2"
'
'Button3
'
Me.Button3.Location = New System.Drawing.Point(320, 56)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(48, 24)
Me.Button3.TabIndex = 3
Me.Button3.Text = "Button3"
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(368, 56)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(48, 24)
Me.Button4.TabIndex = 4
Me.Button4.Text = "Button4"
'
'Button5
'
Me.Button5.Location = New System.Drawing.Point(416, 56)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(48, 24)
Me.Button5.TabIndex = 5
Me.Button5.Text = "Button5"
'
'Button6
'
Me.Button6.Location = New System.Drawing.Point(176, 88)
Me.Button6.Name = "Button6"
Me.Button6.Size = New System.Drawing.Size(48, 32)
Me.Button6.TabIndex = 6
Me.Button6.Text = "Button6"
'
'Button7
'
Me.Button7.Location = New System.Drawing.Point(176, 120)
Me.Button7.Name = "Button7"
Me.Button7.Size = New System.Drawing.Size(48, 32)
Me.Button7.TabIndex = 7
Me.Button7.Text = "Button7"
'
'Button8
'
Me.Button8.Location = New System.Drawing.Point(176, 152)
Me.Button8.Name = "Button8"
Me.Button8.Size = New System.Drawing.Size(48, 32)
Me.Button8.TabIndex = 8
Me.Button8.Text = "Button8"
'
'Button9
'
Me.Button9.Location = New System.Drawing.Point(176, 184)
Me.Button9.Name = "Button9"
Me.Button9.Size = New System.Drawing.Size(48, 32)
Me.Button9.TabIndex = 9
Me.Button9.Text = "Button9"
'
'Button10
'
Me.Button10.Location = New System.Drawing.Point(248, 88)
Me.Button10.Name = "Button10"
Me.Button10.Size = New System.Drawing.Size(48, 32)
Me.Button10.TabIndex = 10
Me.Button10.Text = "1"
'
'Button11
'
Me.Button11.Location = New System.Drawing.Point(296, 88)
Me.Button11.Name = "Button11"
Me.Button11.Size = New System.Drawing.Size(48, 32)
Me.Button11.TabIndex = 11
Me.Button11.Text = "2"
'
'Button12
'
Me.Button12.Location = New System.Drawing.Point(344, 88)
Me.Button12.Name = "Button12"
Me.Button12.Size = New System.Drawing.Size(48, 32)
Me.Button12.TabIndex = 12
Me.Button12.Text = "3"
'
'Button13
'
Me.Button13.Location = New System.Drawing.Point(248, 120)
Me.Button13.Name = "Button13"
Me.Button13.Size = New System.Drawing.Size(48, 32)
Me.Button13.TabIndex = 13
Me.Button13.Text = "4"
'
'Button14
'
Me.Button14.Location = New System.Drawing.Point(296, 120)
Me.Button14.Name = "Button14"
Me.Button14.Size = New System.Drawing.Size(48, 32)
Me.Button14.TabIndex = 14
Me.Button14.Text = "5"
'
'Button15
'
Me.Button15.Location = New System.Drawing.Point(344, 120)
Me.Button15.Name = "Button15"
Me.Button15.Size = New System.Drawing.Size(48, 32)
Me.Button15.TabIndex = 15
Me.Button15.Text = "6"
'
'Button16
'
Me.Button16.Location = New System.Drawing.Point(248, 152)
Me.Button16.Name = "Button16"
Me.Button16.Size = New System.Drawing.Size(48, 32)
Me.Button16.TabIndex = 16
Me.Button16.Text = "7"
'
'Button17
'
Me.Button17.Location = New System.Drawing.Point(296, 152)
Me.Button17.Name = "Button17"
Me.Button17.Size = New System.Drawing.Size(48, 32)
Me.Button17.TabIndex = 17
Me.Button17.Text = "8"
'
'Button18
'
Me.Button18.Location = New System.Drawing.Point(344, 152)
Me.Button18.Name = "Button18"
Me.Button18.Size = New System.Drawing.Size(48, 32)
Me.Button18.TabIndex = 18
Me.Button18.Text = "9"
'
'Button19
'
Me.Button19.Location = New System.Drawing.Point(296, 184)
Me.Button19.Name = "Button19"
Me.Button19.Size = New System.Drawing.Size(48, 32)
Me.Button19.TabIndex = 19
Me.Button19.Text = "0"
'
'Button20
'
Me.Button20.Location = New System.Drawing.Point(408, 88)
Me.Button20.Name = "Button20"
Me.Button20.Size = New System.Drawing.Size(56, 23)
Me.Button20.TabIndex = 20
Me.Button20.Text = "/"
'
'Button21
'
Me.Button21.Location = New System.Drawing.Point(408, 112)
Me.Button21.Name = "Button21"
Me.Button21.Size = New System.Drawing.Size(56, 23)
Me.Button21.TabIndex = 21
Me.Button21.Text = "*"
'
'Button22
'
Me.Button22.Location = New System.Drawing.Point(408, 136)
Me.Button22.Name = "Button22"
Me.Button22.Size = New System.Drawing.Size(56, 23)
Me.Button22.TabIndex = 22
Me.Button22.Text = "-"
'
'Button23
'
Me.Button23.Location = New System.Drawing.Point(408, 160)
Me.Button23.Name = "Button23"
Me.Button23.Size = New System.Drawing.Size(56, 23)
Me.Button23.TabIndex = 23
Me.Button23.Text = "+"
'
'RadioButton1
'
Me.RadioButton1.Location = New System.Drawing.Point(496, 24)
Me.RadioButton1.Name = "RadioButton1"
Me.RadioButton1.Size = New System.Drawing.Size(96, 24)
Me.RadioButton1.TabIndex = 24
Me.RadioButton1.Text = "Yellow"
'
'RadioButton2
'
Me.RadioButton2.Location = New System.Drawing.Point(496, 48)
Me.RadioButton2.Name = "RadioButton2"
Me.RadioButton2.Size = New System.Drawing.Size(96, 24)
Me.RadioButton2.TabIndex = 25
Me.RadioButton2.Text = "Blue"
'
'RadioButton3
'
Me.RadioButton3.Location = New System.Drawing.Point(496, 72)
Me.RadioButton3.Name = "RadioButton3"
Me.RadioButton3.Size = New System.Drawing.Size(96, 24)
Me.RadioButton3.TabIndex = 26
Me.RadioButton3.Text = "Violet"
'
'RadioButton4
'
Me.RadioButton4.Location = New System.Drawing.Point(496, 96)
Me.RadioButton4.Name = "RadioButton4"
Me.RadioButton4.Size = New System.Drawing.Size(96, 24)
Me.RadioButton4.TabIndex = 27
Me.RadioButton4.Text = "Green"
'
'RadioButton5
'
Me.RadioButton5.Location = New System.Drawing.Point(496, 120)
Me.RadioButton5.Name = "RadioButton5"
Me.RadioButton5.Size = New System.Drawing.Size(96, 24)
Me.RadioButton5.TabIndex = 28
Me.RadioButton5.Text = "Red"
'
'RadioButton6
'
Me.RadioButton6.Location = New System.Drawing.Point(592, 24)
Me.RadioButton6.Name = "RadioButton6"
Me.RadioButton6.TabIndex = 29
Me.RadioButton6.Text = "White"
'
'RadioButton7
'
Me.RadioButton7.Location = New System.Drawing.Point(592, 48)
Me.RadioButton7.Name = "RadioButton7"
Me.RadioButton7.Size = New System.Drawing.Size(96, 24)
Me.RadioButton7.TabIndex = 30
Me.RadioButton7.Text = "Orange"
'
'RadioButton8
'
Me.RadioButton8.Location = New System.Drawing.Point(592, 72)
Me.RadioButton8.Name = "RadioButton8"
Me.RadioButton8.TabIndex = 31
Me.RadioButton8.Text = "Gray"
'
'RadioButton9
'
Me.RadioButton9.Location = New System.Drawing.Point(592, 96)
Me.RadioButton9.Name = "RadioButton9"
Me.RadioButton9.TabIndex = 32
Me.RadioButton9.Text = "Beige"
'
'RadioButton10
'
Me.RadioButton10.Location = New System.Drawing.Point(592, 120)
Me.RadioButton10.Name = "RadioButton10"
Me.RadioButton10.TabIndex = 33
Me.RadioButton10.Text = "Black"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(720, 398)
Me.Controls.Add(Me.RadioButton10)
Me.Controls.Add(Me.RadioButton9)
Me.Controls.Add(Me.RadioButton8)
Me.Controls.Add(Me.RadioButton7)
Me.Controls.Add(Me.RadioButton6)
Me.Controls.Add(Me.RadioButton5)
Me.Controls.Add(Me.RadioButton4)
Me.Controls.Add(Me.RadioButton3)
Me.Controls.Add(Me.RadioButton2)
Me.Controls.Add(Me.RadioButton1)
Me.Controls.Add(Me.Button23)
Me.Controls.Add(Me.Button22)
Me.Controls.Add(Me.Button21)
Me.Controls.Add(Me.Button20)
Me.Controls.Add(Me.Button19)
Me.Controls.Add(Me.Button18)
Me.Controls.Add(Me.Button17)
Me.Controls.Add(Me.Button16)
Me.Controls.Add(Me.Button15)
Me.Controls.Add(Me.Button14)
Me.Controls.Add(Me.Button13)
Me.Controls.Add(Me.Button12)
Me.Controls.Add(Me.Button11)
Me.Controls.Add(Me.Button10)
Me.Controls.Add(Me.Button9)
Me.Controls.Add(Me.Button8)
Me.Controls.Add(Me.Button7)
Me.Controls.Add(Me.Button6)
Me.Controls.Add(Me.Button5)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox1)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)

End Sub


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click

End Sub

End Class

Recommended Answers

All 5 Replies

Member Avatar for iamthwee

Please clarify your question.

my problem is i dont know how to declare a color for the form..I just want to know how how to put several colors in one form...

Member Avatar for iamthwee

I still don't understand your question. What has colour of your form got to do with a scientific calculator?

Please clarify.

im not having any problem with the calculator, im having problem on how to put color on it, coz i want to modify my calculator and put different colors on its form...

You want to add color's to your buttons and radio buttons? You can use the back color and fore color options to it. Button.backcolor?

The thread title says that "how do you conduct a code for a scientific calculator?" now your asking for color?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.