Having a string like this:
String texto = "123456890";
How can I make the screen output look like this:
(123)4567890
Having a string like this:
String texto = "123456890";
How can I make the screen output look like this:
(123)4567890
Using the String.format method of the class String
String texto = "123456890";
MessageBox.Show(String.Format("{0:(###) ######}", Convert.ToInt64(texto));