How to Add XP Visual Style to your Visual Basic Application
Recently, I got some friends asking me about how can they add Windows XP visual style on their Visual Basic application. Why can't you get the XP style look when you run or compile your Visual Basic application anyway? For your information, the Windows XP Visual Styles are provided by ComCtl32.dll version 6 or later. The ComCtl32 does not apply the latest styles to the client area of an application by default. So, in order to enable it, you need to ensure that your application is linked to the new ComCtl32.dll by calling the ComCtl's InitCommonControls API call. And then, you also need to provide a Manifest file which specifies that the new version of the control styles should be used. To make this short. All you need to add to your code is this lines of codes on a module... Private Type tagInitCommonControlsEx lSize As Long lICC As Long End Type Private Declare Function InitCommonControlsEx Lib "comctl32.dll" _ (iccex As tagInitCommonControlsEx) As B...