|
-
Oct 11th, 2008, 04:14 PM
#1
Thread Starter
Hyperactive Member
Changing richtext to bold w/o selecting text first
Howdie.
I used to have a solution to this, but for some reason have lost the links and my code for this, and no posts I have seen really answer this question.
The standard approach given, is that you select the text FIRST, then apply properties such as Text.SelBold = True to set the selection to bold. The problem with this is that my program is sending text to a Rich Text Box, and it must be formatted for bold BEFORE it gets to the text box, then, after it is printed, the following text after that needs to be changed back to normal weight. The documentation seems to suggest that using .selbold will work for anything after the cursor but this isn't working...it has no effect at all. Is it because I don't have a physical cursor present in the textbox?
Thanks for any replies.
treddie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|