Bold, italic, underline with RTF

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 38
Reputation: ITKnight is an unknown quantity at this point 
Solved Threads: 1
ITKnight's Avatar
ITKnight ITKnight is offline Offline
Light Poster

Bold, italic, underline with RTF

 
0
  #1
Feb 1st, 2008
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...
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 38
Reputation: ITKnight is an unknown quantity at this point 
Solved Threads: 1
ITKnight's Avatar
ITKnight ITKnight is offline Offline
Light Poster

Re: Bold, italic, underline with RTF

 
0
  #2
Feb 1st, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 25
Reputation: poguemahone is an unknown quantity at this point 
Solved Threads: 2
poguemahone's Avatar
poguemahone poguemahone is offline Offline
Light Poster

Re: Bold, italic, underline with RTF

 
2
  #3
Feb 1st, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Bold, italic, underline with RTF

 
2
  #4
Feb 4th, 2008
already answered by pogumahone.
anyelse friends...
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 38
Reputation: ITKnight is an unknown quantity at this point 
Solved Threads: 1
ITKnight's Avatar
ITKnight ITKnight is offline Offline
Light Poster

Re: Bold, italic, underline with RTF

 
0
  #5
Feb 4th, 2008
Thx for the code all. I will post some again.
see you friends...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC