I try to display a credit card number such as #### ######## String I am doing ####
I tried:
txtbox.Text = string.Format ("{0: #### ###### ######} ", ccNumber); And it was not working any thoughts?
string format ("{0000 0000 0000 0000}", number) Edit I paste my comment here to paste:
ccNumber an int or wire? If it is an integer, then it should work if it is a string, then you must
string format ("{0000 0000 0000}", (Int64.Parse ("123456781245645678" )))
Comments
Post a Comment