943,706 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 12681
  • VB.NET RSS
Feb 1st, 2008
0

Bold, italic, underline with RTF

Expand Post »
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...
Similar Threads
Reputation Points: 11
Solved Threads: 1
Light Poster
ITKnight is offline Offline
48 posts
since Jan 2008
Feb 1st, 2008
0

Re: Bold, italic, underline with RTF

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
Reputation Points: 11
Solved Threads: 1
Light Poster
ITKnight is offline Offline
48 posts
since Jan 2008
Feb 1st, 2008
2

Re: Bold, italic, underline with RTF

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.
Reputation Points: 13
Solved Threads: 2
Light Poster
poguemahone is offline Offline
25 posts
since Aug 2007
Feb 4th, 2008
2

Re: Bold, italic, underline with RTF

already answered by pogumahone.
anyelse friends...
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007
Feb 4th, 2008
0

Re: Bold, italic, underline with RTF

Thx for the code all. I will post some again.
see you friends...
Reputation Points: 11
Solved Threads: 1
Light Poster
ITKnight is offline Offline
48 posts
since Jan 2008
Apr 7th, 2011
0
Re: Bold, italic, underline with RTF
Hi all,

Can we able to format BOLD and ITALIC to the same text?
Please reply ASAP.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Poornima Kamal is offline Offline
1 posts
since Apr 2011
Apr 7th, 2011
0
Re: Bold, italic, underline with RTF
Quote ...
Can we able to format BOLD and ITALIC to the same text?
Please reply ASAP.
How about make your own thread???
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: update textbox
Next Thread in VB.NET Forum Timeline: Navigation Problem in DataGridView using enter key





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC