By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,663 Members | 762 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,663 IT Pros & Developers. It's quick & easy.

Text Color

P: 11
Hey. In my program I have a rich text box. I was wondering if there was a way to get the first couple of words on a line in the box a certain color like red and the rest of the words in the box plain black ? Thanks alot!
Sep 18 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
Hey. In my program I have a rich text box. I was wondering if there was a way to get the first couple of words on a line in the box a certain color like red and the rest of the words in the box plain black ? Thanks alot!
Sure. Just select it (using the .SelStart and .SelLength properties, or various related methods) then set .SelColor.
Sep 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.