Answers for "given text box phone number in c# how to format"

C#
0

given text box phone number in c# how to format

string s = RegHomePhoneTBox.Text;
        double sAsD = double.Parse(s);
        RegHomePhoneTBox.Text = string.Format("{0:###-####}", sAsD).ToString();
Posted by: Guest on August-28-2021

Code answers related to "given text box phone number in c# how to format"

C# Answers by Framework

Browse Popular Code Answers by Language