About 5,410,000 results
Open links in new tab
  1. .net - Adding strings to a RichTextBox in C# - Stack Overflow

    May 20, 2016 · I currently have a function that will set a value to a RichTextBox, although how could you "add" a value or a new line to it, rather than overwriting existing data in the RichTextBox? …

  2. c# - Richtextbox wpf binding - Stack Overflow

    To do DataBinding of the Document in a WPF RichtextBox, I saw 2 solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy". Neith...

  3. Color different parts of a RichTextBox string - Stack Overflow

    136 I'm trying to color parts of a string to be appended to a RichTextBox. I have a string built from different strings.

  4. Difference between Textbox and RichTextbox wpf?

    Jul 6, 2012 · See this Microsoft overview of the differences between a TextBox and a RichTextBox. From above Link: Both RichTextBox and TextBox allow users to edit text, however, the two controls …

  5. c# - How to use multi color in richtextbox - Stack Overflow

    Nov 5, 2012 · I using C# windows forms and I have richtextbox and I want to color some text in red, some in green and some in black. How to do so? Image attached.

  6. c# - How to clear text content in RichTextBox - Stack Overflow

    Oct 22, 2018 · After getting the text in the RichTextBox I want to clear the text. How can I do that?

  7. How to 'align' text in RichTextBox C#? - Stack Overflow

    Feb 11, 2017 · If you want only part of the textbox with a certain alignment, then use the RichTextBox.Select () routine to select the text, then set the SelectionAlignment property.

  8. Rich Text Box padding between text and border - Stack Overflow

    Nov 5, 2015 · The RichTextBox has no padding property. Quick and dirty padding can be achieved by putting the RichTextBox in a Panel, which has the same BackColor property as the RichTextBox …

  9. c# - Get cursor line in RichTextBox - Stack Overflow

    Mar 26, 2025 · In C#, I have a RichTextBox, and I want to get the current line of the cursor. Every answer I've found says to use: int currentLine = …

  10. Changing font for richtextbox without losing formatting

    How to change the font of all the contents of a richtextbox without losing formatting? I am trying to use rtb.SelectAll(); rtb.SelectionFont = new Font(fontName,...); but the font constructor ha...