Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 2nd, 2008, 2:15 PM   #1
whizzkid
Newbie
 
Join Date: Feb 2008
Posts: 12
Rep Power: 0 whizzkid is on a distinguished road
RichTextBox and RTF

Hi again,

I've overcome most difficulties with Unicode so far (thanks to the community and some friends), but now I have another problem.

I want to use Rich Text Format to display text. OK, it's not very difficult, but the main thing is that I want to display various formattings in one Rich Edit Box (using Visual Studio 2008). There are some functions that can code it, and some sources describing the process, but thus, I cannot understand it. Would someone be so nice to post me a very simple code as an example? Code should do:
1. take first string*, change formatting to bold and red colour
2. take second string*, change formatting to italic and green colour
3. display them both in one Rich Edit Box keeping their specific formattings

* strings are not loaded from file, but are given as an input; purpose is NOT text editor, only display is valuable to me (and saving the text from the box to a file, but that's thing to do later)

I know this is rather a thing I should have learned from documentation, but the language used there is too technical to me...

Thanks in advance,
WhizzKid
whizzkid is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC