Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Formatting Credit Number in Textbox Control
#8
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!
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Re: Help Formatting Credit Number in Textbox Control - by brandonio21_phpbb3_import2 - 08-27-2012, 03:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom tab control help and making controls Derek275 4 20,077 11-16-2012, 09:51 AM
Last Post: Snake_eyes
  Winsock Control Covert2String 7 23,816 11-27-2011, 08:57 PM
Last Post: brandonio21
  Custom Tab Control xolara 5 19,318 04-24-2011, 07:12 PM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)