VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



XP Style Control Help

by El Mariachi (5 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

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

Download XP Style Control Help

Download XP Style Control Help (4 KB)

XP Style Control Help Comments

No comments have been posted about XP Style Control Help. Why not be the first to post a comment about XP Style Control Help.

Post your comment

Subject:
Message:
0/1000 characters