[RESOLVED] "Cycling" through a richtextbox
Alright, i have an application in which the user inputs information into a rich textbox separated by enter spaces. Lets say i want to display all of that information once at a time in a message box.
Eg. i want to do a messagebox.show each one of those individually except on a mass scale like 100. On a single button click.
maybe use a method so i could do something like "messagebox.show(showinformation());"
How could i go about doing this?
Thank you,
Pale.
Re: "Cycling" through a richtextbox
Use String.Split() method to split the text in Richtextbox.
Re: "Cycling" through a richtextbox
Quote:
Originally Posted by Shuja Ali
Use String.Split() method to split the text in Richtextbox.
How do i make that do an enter space between the text?
Re: "Cycling" through a richtextbox
String.Split() will split a string on a specific character. The character int value for a carriage return is 13.
Re: "Cycling" through a richtextbox
How about:
MessageBox.Show(MyString.Replace("\n", "\r\n"));