-
July 24th, 2008, 01:51 AM
#1
[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.
-
July 24th, 2008, 02:21 AM
#2
Re: "Cycling" through a richtextbox
Use String.Split() method to split the text in Richtextbox.
-
July 24th, 2008, 12:17 PM
#3
Re: "Cycling" through a richtextbox
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?
-
July 24th, 2008, 01:28 PM
#4
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.
-
July 24th, 2008, 01:36 PM
#5
Re: "Cycling" through a richtextbox
How about:
MessageBox.Show(MyString.Replace("\n", "\r\n"));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|