08-27-2012, 03:35 PM
kismetgerald Wrote:[code2=vbnet]TextBoxCard.Text.Replace("-", "")[/code2]
Am I doing it wrong?
Well, you would actually want to use the code:
[code2=vbnet]TextBoxCard.Text = TextBoxCard.Text.Replace("-", "")[/code2]
However, you would probably want a better way to do this. Since an error is thrown and you want to avoid it, take a look at using Try in order to catch the error!