Guides & Tutorials (beta)

Applying the Office 2007 Skin

by Mike Palmatier Visual Basic 6 Created on 05/03/2008  |  Updated on 07/31/2024 0/5 ( 0 votes )

First a skin must be loaded before it can be applied to your application. The LoadSkin method loads a skin from a .cjstyles or .msstyles file.

The Office 2007 skin is located in the Office2007.cjstyles skin file and is loaded using the NormalOffice2007.ini file name.

    'Loads the NormalBlue.ini skin
    SkinFramework.LoadSkin App.Path + _
       "..\..\..\Styles\Office2007.cjstyles", "NormalBlue.ini"

To actually apply the skin, the ApplyWindow method must be called. ApplyWindow only needs to be called one time in the Load event of the window a skin will be applied. This tells the SkinFramework which window to apply skins to. The skin will be applied to all child windows as well.

    'Applies the currently loaded skin to the specified window
    'ApplyWindow tells the SkinFramework which window's appearance 
    'to skin.  This can be called before or after a skin has been 
    'loaded, but the skin will not be applied until ApplyWindow is 
    'called.  Skins are loaded using the LoadSkin method.
    SkinFramework.ApplyWindow Me.hWnd

Skin Controls

Here are some additional styles that are available:

Office2007.cjstyles:

  • NORMALAQUA.INI
  • NORMALBLUE.INI

Vista.cjstyles:

  • NORMALBLACK.INI
  • NORMALBLUE.INI
  • NORMALSILVER.INI

WinXP.Luna.cjstyles:

  • EXTRALARGEBLUE.INI
  • EXTRALARGEHOMESTEAD.INI
  • EXTRALARGEMETALLIC.INI
  • LARGEBLUE.INI
  • LARGEHOMESTEAD.INI
  • LARGEMETALLIC.INI
  • NORMALBLUE.INI
  • NORMALHOMESTEAD.INI
  • NORMALMETALLIC.INI

WinXP.Royale.cjstyles:

  • EXTRALARGEFONTSROYALE.INI
  • LARGEFONTSROYALE.INI
  • NORMALROYALE.INI

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guaranteed

Contact sales@codejock.com for more details.