954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Bold, italic, underline with RTF

hi all, i m a newbie in this forum and vb.net application, but i want to learn this language. please help with your post. Thx all. :)
this my question :
How i can make my font to looks Bold, Italic or Underline in rich text box with vb.net ??

Ok. Best Regards...

ITKnight
Light Poster
48 posts since Jan 2008
Reputation Points: 11
Solved Threads: 1
 

this my sample code but i m got an error :
RichTextBox1.Font.Bold = False
how it can be?? i think i did not do mistake with that code.
Please Help me...
Best Regards

ITKnight
Light Poster
48 posts since Jan 2008
Reputation Points: 11
Solved Threads: 1
 

Try these:

RichTextBox.SelectionFont = New Font("Tahoma", 12, FontStyle.Underline)
RichTextBox.SelectionFont = New Font("Tahoma", 12, FontStyle.Bold)
RichTextBox.SelectionFont = New Font("Tahoma", 12, FontStyle.Italic)

Then add the text to the RichTextBox Control.

poguemahone
Light Poster
25 posts since Aug 2007
Reputation Points: 13
Solved Threads: 2
 

already answered by pogumahone.
anyelse friends...

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Thx for the code all. I will post some again.
see you friends... :)

ITKnight
Light Poster
48 posts since Jan 2008
Reputation Points: 11
Solved Threads: 1
 

Hi all,

Can we able to format BOLD and ITALIC to the same text?
Please reply ASAP.

Poornima Kamal
Newbie Poster
1 post since Apr 2011
Reputation Points: 10
Solved Threads: 0
 
Can we able to format BOLD and ITALIC to the same text? Please reply ASAP.


How about make your own thread???

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You