Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27056

VS 2010 Calculator problem !

$
0
0
Hey I am new to Visual basic, I learnt some things and I want to make a calculator I want it with buttons so I made the 9 buttons of the 9 numbers and I made 2 labels what I actually want is when I press Button "1" label = "1" then I press button "6" the next label be = "6" so I made this:

Private Sub num3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles num3.Click
If Number2.Text = Nothing Then
Number2.Text = "3"
End If
Number1.Text = "3"
End Sub

and it's not working can someone help me please?

Viewing all articles
Browse latest Browse all 27056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>