Click here to Skip to main content
15,897,291 members
Articles / Programming Languages / Visual Basic

Calculations Using multiple Texas Boxes in VB.net

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
22 Sep 2012CPOL 0  
Something like this should work: Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click If TextBox1.Text = "" Or TextBox2.Text = "" Then Exit Sub End If Dim Net1 As Double Dim Net2 As...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
22 Sep 2012icecode 1 alternative  
I am trying to do baic subtraction using texbox21.text - texbox60.text = output to Label1. The math and function works.This is for multiple rows of the same kind of equation but with different texboxes,Simple math. But if the values are blank I get an exception Error. Here is my code...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Norway Norway
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions