Search Tools Links Login

XP Style Control Help


Visual Basic 6, or VB Classic

I wanted to share what i have learned about supporting XP themes in your existing apps. Note that the themes will only be visible if you are running Windows XP. Any other OS and they will look as they did before. First, make a manifest file for your app. This is fairly simple and samples can be searched for at PSC (go to http://www.planet-source-code.com/xq/ASP/txtCodeId.27928/lngWId.1/qx/vb/scripts/ShowCode.htm and that code will generate one for you). The second thing i learned is that certain controls, especially the option button, will not show up correctly in a frame(ie ugly black box around the option control). This can be resolved by putting your control in a picture box inside the frame. Second, a command button that is set to graphical style will not show up themed. The button has to be a standard style. Note that this property cannot be set through code, it has to de done via the properties in the IDE. Hope this helps.

Original Author: El Mariachi

Side Effects

I think by default if you use a manifest file then your app is setup to be in Windows 2000 compatibilty mode. I have not tested this fully though.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 81 times

Categories

Visual Basic 6

Attachments

XP_Style_C4331912202001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 5,218 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.