VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

XP Style Control Help

El Mariachi  (5 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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 VBC (go to https://www.vbcoders.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.

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.

Rate XP Style Control Help (6(6 Vote))

Download XP Style Control Help

XP Style Control Help Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters