How do I get the text of a richtextbox? I've searched for so long and I can't find an answer! Why isn't there something like richTextBox1.getText()
?
Asked
Active
Viewed 2,909 times
-4

Mine Rockers
- 213
- 3
- 12
-
@frostbyte read title pls – Mine Rockers Feb 17 '17 at 05:20
-
@frostbyte richTextBox1.Document.Blocks.Clear(); Documents and Blocks and Clear() doesn't exist in winform – Mine Rockers Feb 17 '17 at 05:21
-
Okay, then try this, which is for WinForms here on SO: https://stackoverflow.com/questions/2750532/how-to-get-displayed-text-from-richtextbox – frostbyte Feb 17 '17 at 05:22
-
@frostbyte can you remove downvote and duplicate? Since you know you made a mistake (I found an answer already btw) – Mine Rockers Feb 17 '17 at 05:25
-
I did not provide the downvote. I am not at the level required for downvotes. So, can't help you there. – frostbyte Feb 17 '17 at 05:27
-
@frostbyte D: -2, I guess people forgot their daily coffee ;) – Mine Rockers Feb 17 '17 at 05:27