-4

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()?

Mine Rockers
  • 213
  • 3
  • 12

2 Answers2

3

You can write directly richTextBox1.Text

Amit Yadav
  • 481
  • 3
  • 11
1

Please try this:

string text = richTextBox1.Text().Trim();
Nayan Katkani
  • 806
  • 8
  • 18