Showing posts with label XP theme. Show all posts
Showing posts with label XP theme. Show all posts

Wednesday, January 9, 2008

Windows XP theme in Visual Basic 6.0 Problem

The problem:

http://support.microsoft.com/kb/309366

If you enable a Windows XP theme in Visual Basic 6.0, you may encounter unexpected behavior. For example, if you place option buttons on top of a Frame control and then enable a Windows XP theme or visual style, the option buttons on the Frame control appear as black blocks when you run the executable file.


Solution:

Place the OptionButtons on a PictureBox. Set the pictureboxes properties (background, border, ...) to make it 'invisible' if you want. You're done :)