vb.net - Convert to integer and get sum of two numbers -


I want to get the sum of the two numbers given below in the string format, but it does not work. any idea? CostDay2.Text and costDay3.Text are the number values ​​in a text box

  decimal days23 as Dim Days23 = (Convert.ToDecimal (costDay2.Text) + Convert.ToDecimal (costDay3.Text) )  

The result I found is 0.00, but the value of cost is Day2.Text = 150.00 and cost DAY3 = 200.00, therefore the result should be 350.00

< Div class = "post-text" itemprop = "text">

This is for me VS Works in 2012 2 text boxes, Costdie 2, Costdie 3 and a Command button. When I run, I explicitly input 2.01 and 2.50 values ​​in each text boxer. I click on button 1 and expected as a result of 4.51

  Personal sub button 1_Click (object as sender, and EventArgs) handle button 1. Click Dim Day2, Day3, Day23 as Double Day2 = costDay2.Text Day3 = Costdown 3. Text Day 23 = Day 2 + Day 3 Message Box (Day 23) End Sub  

Comments