How can I get the text that the user marked so I can bolden only the marked text instead of bolding up the whole textbox text?I don't know how to formulate my statement..
Asked
Active
Viewed 315 times
2 Answers
1
you would be using a RichTextBox control. you need to highlight the word and make it bold.

Community
- 1
- 1

Ahmed ilyas
- 5,722
- 8
- 44
- 72
-
welcome. feel free to mark it as an answer – Ahmed ilyas Nov 06 '13 at 18:14
1
String data=TextBox1.SelectedText;
for Formatting the Text like setting the Selected Text to Bold or to Specific font you Should Use RichTextBoxControl.
Example:
richTextBox1.SelectionFont = new Font("Arial", 10, FontStyle.Bold);

Sudhakar Tillapudi
- 25,935
- 5
- 37
- 67
-
This does not answer "bolden only the marked text instead of bolding up the whole textbox text?" – Pierre-Luc Pineault Nov 06 '13 at 17:58
-
Hello thanks alot about this but I want to use a textbox and textbox does not include the selectionfont prop – Nov 06 '13 at 18:05
-
2
-