Hello everyone,
I am doing a project "Unit Length Converter" using ASP.NET/VB.NET.
I have two dropdownlist, 10 lines of textboxes (20 textboxes each side) and one Calculate button.
Please see the graphical sample what I am doing right now:
Click here to view
I selected the units of length on the both side of the dropdownlists, for example at left side dropdownlist1 I selected the unit (From:) "Inches" and on the right side of the dropdownlist2, I selected the unit (To:) centimeter. Later, I typed the numbers in each textbox(es) on the left side, and the textbox(es) on the right side are the results for the unit centimeter conversion
Here is the code:
Protected Sub btncalculate_Click(sender As Object, e As System.EventArgs) Handles btncalculate.Click
Dim Num As Double
Dim val1 As Double = TextBox1.Text
Dim val2 As Double = TextBox2.Text
If Double.TryParse(TextBo ...
Go to the complete details ...