
... haber... creas 2 variables :
Código vb.net:
Ver original'CREAS TUS VARIABLES
Dim variable1 as Double = 0
'Dim variable2 as Double = 0
En el evento click de los botones de operaciones puedes hacer algo como esto... por ejemplo del "+" y el "="
Código vb.net:
Ver originalPrivate Sub btnSuma_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSuma.Click
If txtIngreso.Text.Trim.Equals("")
variable1 = variable1 + 0
txtIngreso.Text = ""
Else
variable1 = variable + Convert.toDouble(txtIngreso.Text)
End If
End Sub
Código vb.net:
Ver originalPrivate Sub btnIgual_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnIgual.Click
If(txtIngreso.Text.Trim.Equals("")
variable1 = variable1 + 0
txtIngreso.Text = variable1
Else
variable1 = variable + Convert.toDouble(txtIngreso.Text)
txtIngreso.Text = variable1
End If
End Sub