Office 2003 look & feel - howto skin my own application?


Hi,

anyone know any good articles or links on howto change my win forms application look & feel into Office 2003, or even XP, look & feel

Thanx,

Lavinder


Answer this question

Office 2003 look & feel - howto skin my own application?

  • Paul Hendley

    Hi Lavinder,

    To get XP Look and Feel:
    - in your static Main method add a line <b>Application.EnableVisualStyles()</b> before Application.Run
    - then change the <b>FlatStyle</b> property for your controls to <b>System</b>. Only some controls have this. Those that do not have it will automatically support XP style.

    Create a manifest file like the following:

    < xml version="1.0" encoding="UTF-8" standalone="yes" >
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <assemblyIdentity
        version="1.0.0.0"
        processorArchitecture="X86"
        name="Wizard"
        type="win32"
    />
    <description>Your application name</description>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity
                type="win32"
                name="Microsoft.Windows.Common-Controls"
                version="6.0.0.0"
                processorArchitecture="X86"
                publicKeyToken="6595b64144ccf1df"
                language="*"
            />
        </dependentAssembly>
    </dependency>
    </assembly>


    Save it as <YourApplicationName>.exe.manifest 
    For example MyApp.exe.manifest

    Copy the manifest file to where MyApp.exe resides and you should be able to get XP look and feel.

    PS. I think there is also another way without the manifest file.

  • Sunny Boy

    u can use winxp common controls available on this site, this might help a lot, but in case of shape of windows, i think some great prog. can help you

  • Office 2003 look & feel - howto skin my own application?