Formatting text of an option button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I change the formatting of the text in an option button? I would like
to have bold text and different colored text.

thanks
 
How do I change the formatting of the text in an option button?
I would like to have bold text and different colored text.

Bold can be handled for any control having a Font property object via the
Font's Bold property. From the IDE, highlight the control, click on Font in
the Properties window and click the small button with the dot-dot-dot
caption, select Bold from the list. In code, you can do it this way...

ControlName.Font.Bold = True

where ControlName is the actual name of your control.

As for the colored text, see these links...

http://vbnet.mvps.org/code/subclass/buttoncolour.htm

http://vbnet.mvps.org/code/intrinsic/buttoncolorcheck.htm

Rick
 
IGNORE MY RESPONSE!!!

I made two mistakes in my answer... one, I thought I was in a VB (compiled)
newsgroup when I answered and, two, I answered for the wrong control
(CommandButton instead of OptionButton).

Sorry for any confusion.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top