VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Changing app Look

Jiten Mhatre  (1 Submission)   Windows System Services   VB 6.0   Unknown Difficulty   Wed 25th August 2004   Mon 8th February 2021

Changing app Look

API Declarations



Create manifest file for changing your application visual style in winXP (only WinXP)

Using Notepad. add the following text to a new file and name the file vb6.exe.manifest. Save to the same folder containing VB6.exe.
To have your final app present with the XP styles when run as an executable, follow these tips:
create a manifest as above, naming it myapp.exe.manifest (where myapp is the name of your application)
install it into the same folder as the exe
declare the InitCommonControls() API in a bas module within the project, and call this from the Initialize event, not the Load event, in each form. Initialize fires when the code is loaded but before the graphical interface is created. Load is called when the interface is created, which is often too late and may result in a hung app.
controls (ie option buttons and check boxes) within a Frame control will loose the XP style and appear as black boxes. A tip I received from Quintin Prinsloo to overcome this problem is to place the controls inside a picture box, and place that picture box into the frame. Because XP repaints controls with the XP style, it requires the controls be hosted inside a container supporting a hDC, such as the form and picture box.


Rate Changing app Look (2(2 Vote))
Changing app Look.bas

Changing app Look Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters