Ask Experts Questions for FREE Help !
Ask
    bashiir's Avatar
    bashiir Posts: 1, Reputation: 1
    New Member
     
    #1

    Apr 8, 2011, 07:14 AM
    my vb calculator did not work when ay inter the number so my code is
    Text1.Text = "1"
    End Sub

    Private Sub cmd8_Click()
    Text1.Text = "2"
    End Sub

    Private Sub cmd9_Click()
    Text1.Text = "3"
    End Sub

    Private Sub cmdadd_Click()
    num1 = Text1.Text
    Text1.Text = ""
    op = "+"
    End Sub

    Private Sub cmdclear_Click()
    Text1.Text = ""
    End Sub

    Private Sub cmddivid_Click()
    num1 = Text1.Text
    Text1.Text = ""
    op = "/"
    End Sub

    Private Sub cmdequal_Click()
    num2 = Text1.Text
    If op = "+" Then
    Text1.Text = num1 + num2
    ElseIf op = "-" Then
    Text1.Text = num1 - num2
    ElseIf op = "*" Then
    Text1.Text = num1 * num2
    ElseIf op = "/" Then
    Text1.Text = num1 / num2
    End If
    End Sub

    Private Sub cmdminus_Click()
    num1 = Text1.Text
    Text1.Text = ""
    op = "-"
    End Sub

    Private Sub cmdmult_Click()
    num1 = Text1.Text
    Text1.Text = ""
    op = "*"
    End Sub
    what can I do?

Check out some similar questions!

Code for a simple calculator [ 1 Answers ]

Hello everyone, Please... Who can help me making code in simple calculator?. I really don't know how to make a code, I just design a simple calculator in Vb 6.0 it has a basic functions... Thanks.

Vb code for calculator [ 1 Answers ]

Help me to solve the code for calculator in visual basic.. I really really need it urgent.. Thanks... :(

Code for financial calculator [ 1 Answers ]

I need code to design a financial calculator please kindly help me

My wrong calculator code. [ 2 Answers ]

i did a very simple calculator http://img176.imageshack.us/img176/7314/52886418qe8.png And this is my code http://aycu30.webshots.com/image/47789/2003224651406407843_rs.jpg


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.