Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15480

How to bold selected words in RichTextBox?

$
0
0
Hi, I'm new in RichTextBox. I want to select a word that wrapped between my special symbol I self invented (#B#) to be bold and deleted the symbol after bold, how to do that?

Code:

RichTextBox1.Text = "There is a #B#Little#B# cat."
RichTextBox1.Font.Size = 12
RichTextBox1.Font.Name = "Courier New"

Expected results:
There is a Little cat

Viewing all articles
Browse latest Browse all 15480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>