I have a databound textbox that I would like formatted as a phone number ((###) ###-####), instead of being displayed as 10 numbers.
I'm using this on a databound label, which works fine. The same doesn't work on a textbox, though.
phoneNumber = CDbl(lblPhoneNu mber.Text)
lblPhoneNumber. Text = phoneNumber.ToS tring("(###) ###-####")
Anyone know of something that will work with a textbox?
I'm using this on a databound label, which works fine. The same doesn't work on a textbox, though.
phoneNumber = CDbl(lblPhoneNu mber.Text)
lblPhoneNumber. Text = phoneNumber.ToS tring("(###) ###-####")
Anyone know of something that will work with a textbox?
Comment