08-26-2012, 04:53 PM
Well, automatically detecting the card type based on the numbers that are typed in is going to be difficult seeing that multiple card types have the same number scheme (i.e: Visa and Mastercard)
Anyway, in order to correctly format the textbox, you're going to use the code:
[code2=vbnet]TextBoxCard.Text = CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)[/code2]
Instead of:
[code2=vbnet]CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)[/code2]
Anyway, in order to correctly format the textbox, you're going to use the code:
[code2=vbnet]TextBoxCard.Text = CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)[/code2]
Instead of:
[code2=vbnet]CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)[/code2]