title: VB.net convert , to decimal (order of placement)
body: <p>Hi I have a textbox which dose some math calculations perfect if you work with decimals not so if you work with commas.. the first option i explored was to just accept numbers and decimals in a masked textbox... but why? some of us have learned to use commas since we first started school... so my idea is to have a textbox which searches for commas and turns them into decimals for the user.</p>
  
  <p>I have the following code but as example if I type in 2,5 my conversion becomes 25. so yes i have converted the comma to decimal but have lost its placing. The question thus being how can I do my conversion properly with the right decimal placement?</p>
  
  <pre><code>If TextBox13.Text.Contains(",") Then
  TextBox13.Text = Replace(TextBox13.Text, ",", ".")
  dim test as double textbox1.text
  msgbox(test)
  End If
  </code></pre>