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

Change to bold

P: 469
im using a rich text box called "main", a button called "bold".

when my program is running i want to be able to type in the rich text box, then when i highlight some text and press the bold button it changes the selected text to bold
how is this done?

im using vb express 2005

found it:

Dim bfont As New Font(Main.Font, FontStyle.Bold)
Main.SelectionFont = bfont
Nov 28 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
If it hasn't changed too much since VB6, you'll just set the .SelBold property.
Nov 29 '07 #2

Post your reply

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