Calculation of two boxes in vb.net

Private Sub CommandButton3_Click()
Dim Neon As Integer
Dim Eora As Integer
Dim TotalProducts As Integer

Neon = Me.txtNeon.value
Eora = Me.txtEora.value

TotalProducts = Neon + Eora

Me.txtTotal.value = TotalProducts

end sub

No comments: