I am trying to print a string array into muliple lines within a texbox.
string[] mexicanRestaurants =
{
"Jose Locos 853 N Glenstone Ave, Springfield, MO 65802 (417) 831-1300",
"Tortilleria Perches 1601 W Sunshine St, Springfield, MO 65807 (417) 864-8195",
"Purple Burrito 5360 S Campbell Ave Springfield, MO 65810 (417) 883-5305",
"Amigos Mexican Restaurant 2118 S Campbell Ave, Springfield, MO 65807 (417) 887-1401",
"Cantina Laredo 4109 S National Ave, Springfield, MO 65807 (417) 881-7200"
};
Random rand = new Random();
String result = mexicanRestaurants[rand.Next(mexicanRestaurants.Length)];
txtResults.Text = result;
Currently the text prints into the textbox as:
Jose Locos 853 N Glenstone Ave, Springfield, MO 65802 (417) 831-1300
I am trying to figue out a way so that it will print into the text box like:
Jose Locos
853 N Glenstone Ave, Springfield, MO 65802
(417) 831-1300
Any help is greatly appreciated. Thanks.