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?
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?