something i done very quick which may or may not help you. Im not the best vb.net programmer but if it helps thats great!
the form has 4 labels, 1 for first number, calculation type, third number and result
i only have 5 buttons active, three buttons for numbers 1 to 3 and buttons for equals and clear
it is very basic and will only allow for one number in each box but will hopefully help and allow you to expand on it.
Public Class test
Dim firstchoice As double
Dim secondchoice As double
Dim sumtype As String
Dim buttonnumber As Integer
Dim HasCalcDone As Boolean
Private Sub oneButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles oneButton.Click
Dim buttonnumber As Integer = 1
If Label1.Text = String.Empty Then
Label1.Text = buttonnumber
firstchoice = buttonnumber
Else
Label3.Text = buttonnumber
secondchoice = buttonnumber
End If
End Sub
Private Sub twoButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles twoButton.Click
Dim buttonnumber As Integer = 2
If Label1.Text = String.Empty Then
Label1.Text = buttonnumber
firstchoice = buttonnumber
Else
Label3.Text = buttonnumber
secondchoice = buttonnumber
End If
End Sub
Private Sub threeButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles threeButton.Click
Dim buttonnumber As Integer = 3
If Label1.Text = String.Empty Then
Label1.Text = buttonnumber
firstchoice = buttonnumber
Else
Label3.Text = buttonnumber
secondchoice = buttonnumber
End If
End Sub
Private Sub plusButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles plusButton.Click
If Label1.Text = String.Empty Then
MsgBox("Please select a number for the first part of the calculation")
Else
sumtype = "+"
Label2.Text = sumtype
End If
End Sub
Private Sub minusButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles minusButton.Click
If Label1.Text = String.Empty Then
MsgBox("Please select a number for the first part of the calculation")
Else
sumtype = "-"
Label2.Text = sumtype
End If
End Sub
Private Sub dividedButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dividedButton.Click
If Label1.Text = String.Empty Then
MsgBox("Please select a number for the first part of the calculation")
Else
sumtype = "/"
Label2.Text = sumtype
End If
End Sub
Private Sub equalButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles equalButton.Click
Call AddValues()
HasCalcDone = True
End Sub
Sub AddValues()
Select Case sumtype
Case "+"
Label4.Text = firstchoice + secondchoice
Case "-"
Label4.Text = firstchoice - secondchoice
Case "/"
Label4.Text = firstchoice / secondchoice
End Select
End Sub
Private Sub clearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles clearButton.Click
sumtype = ""
firstchoice = 0
secondchoice = 0
Label1.Text = ""
Label2.Text = ""
Label3.Text = ""
HasCalcDone = False
End Sub
End Class