ExcelTheCell
Board Regular
- Joined
- Nov 14, 2010
- Messages
- 158
Well guys i'm not sure will you be able to help because this is code that i made in visual basic studio.. But i have found many similarity's between VBA in Excel and this one.
I'm tring to create simple calculator
textbox1 is number
textbox2 is agregate function (+ or - or * or /)
textbox3 is number
and textbox 4 gives result
here is the code:
Example:
number1= integer = 1
sign= string = +
Number2= integer=2
Numberr=3
Anly idea??
I'm tring to create simple calculator
textbox1 is number
textbox2 is agregate function (+ or - or * or /)
textbox3 is number
and textbox 4 gives result
here is the code:
HTML:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim number1 As Integer
Dim number2 As Integer
Dim Number3 As Integer
Dim sign As String
number1 = TextBox1.Text
sign = TextBox2.Text
number2 = TextBox3.Text
Number3 = number1 & sign & number2
TextBox4.Text = Number3
End Sub
End Class
Example:
number1= integer = 1
sign= string = +
Number2= integer=2
Numberr=3
Anly idea??