Problem with using VB6 control in VB2005 (0/1)

K

Kevin

I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

Has anyone else encountered this problem or know how to fix it?
 
H

Herfried K. Wagner [MVP]

Kevin said:
I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.
 
K

Kevin

My control does a whole lot more than that, but thanks for the reply
just the same.
 
K

Kevin

Thanks! I'll give the picturebox option a try.


There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.
 
K

Kevin

Works perfectly. Thanks.


There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.
 

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

Top