The problem is caused by the (".00") If you remove it the problem goes away.
Passel has given you a very nice solution. The textbox your entering data into will not be adding the .00 format as your typing so I would add that function to the Validating Event
Code:Private Sub tbHeight_Validating(sender As Object, e As CancelEventArgs) Handles tbHeight.Validating Dim decNum As Decimal If Decimal.TryParse(tbHeight.Text, decNum) Then tbHeight.Text = String.Format("{0:n2}", decNum) End If End Sub




Reply With Quote
