WindowsXP Theme 
Author Message
 WindowsXP Theme

Hello All,

I was just wondering how this is done in .NET [either C# or VB.NET].  I am
looking for a way to make my application WindowsXP Theme Aware.  Right now,
when I run my compiled application, I get the Classic Theme [even though I
have the Windows XP Theme Turn'd on].  I understand that they have the
uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
\Windows\WinSxS\... Is there a Class within the Framework that turns on the
theme, or am I going to have to Import the DLL?

I found a website that Shim'd there VB 6.0 application to be Windows XP
Theme aware, but I would like to try and avoid that. [Creating of a Manifest
file]

Any help would be great.

Thanks,
CJ



Thu, 30 Jun 2005 01:24:53 GMT  
 WindowsXP Theme

Quote:

> Hello All,

> I was just wondering how this is done in .NET [either C# or VB.NET].  I am
> looking for a way to make my application WindowsXP Theme Aware.  Right now,
> when I run my compiled application, I get the Classic Theme [even though I
> have the Windows XP Theme Turn'd on].  I understand that they have the
> uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> \Windows\WinSxS\... Is there a Class within the Framework that turns on the
> theme, or am I going to have to Import the DLL?

> I found a website that Shim'd there VB 6.0 application to be Windows XP
> Theme aware, but I would like to try and avoid that. [Creating of a Manifest
> file]

> Any help would be great.

> Thanks,
> CJ

You need to include a manifest file to do this.  There is an example of how to put code in
a VB.Net program that will create one if it does not exist at the site in my signature.  I
find this easier than keeping track of the file.
---
VBnet4Apps
http://www.avenuezx.com/vbnet4apps/


Thu, 30 Jun 2005 03:31:16 GMT  
 WindowsXP Theme
Manifest files are used to tell an application to use the new version of the
common control library, you need a file to tell Windows XP to use Version 6.

Manifest files can be included as a resource or left externally as a file,
with the extension '.manifest' appended to the filename of your executable.
A manifest file is a simple XML file, to include it manually you can load
your executable into the VS .NET IDE, viewing it's resources then create a
resource of type RT_MANIFEST by importing a manifest file. Here is an
example manifest file <watch for wrapping>:

<?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="MyApp"
   type="win32"
/>
<dependency>
   <dependentAssembly>
     <assemblyIdentity
       type="win32"
       name="Microsoft.Windows.Common-Controls"
       version="6.0.0.0"
       processorArchitecture="X86"
       publicKeyToken="6595b64144ccf1df"
       language="*"
     />
   </dependentAssembly>
</dependency>
</assembly>

Replace MyApp with the name of your application.

When you have this as a file do the following in the VS .NET IDE:

1.    Select File>Open File
2.    Open your executable file
3.    Right click the parent node and select 'Add Resource'
4.    Choose Import and select the manifest file
5.    When the box appears asking for the type of resource type RT_MANIFEST
6.    The resource identifier needs to be 1, so select '101' in the
RT_MANIFEST folder and change it to 1

The manifest now resides internally.

==============================================
Happy To Help,
Tom Spink

http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code


Quote:
> Hello All,

> I was just wondering how this is done in .NET [either C# or VB.NET].  I am
> looking for a way to make my application WindowsXP Theme Aware.  Right
now,
> when I run my compiled application, I get the Classic Theme [even though I
> have the Windows XP Theme Turn'd on].  I understand that they have the
> uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> \Windows\WinSxS\... Is there a Class within the Framework that turns on
the
> theme, or am I going to have to Import the DLL?

> I found a website that Shim'd there VB 6.0 application to be Windows XP
> Theme aware, but I would like to try and avoid that. [Creating of a
Manifest
> file]

> Any help would be great.

> Thanks,
> CJ



Thu, 30 Jun 2005 05:15:26 GMT  
 WindowsXP Theme
It's worth noting that with the 1.1 Framework you can simply call
Application.EnableVisualStyles() no manifest needed.

Sean Campbell
3 Leaf
Early Adopter web Log
http://radio.weblogs.com/0117167/


Quote:
> Hello All,

> I was just wondering how this is done in .NET [either C# or VB.NET].  I am
> looking for a way to make my application WindowsXP Theme Aware.  Right
now,
> when I run my compiled application, I get the Classic Theme [even though I
> have the Windows XP Theme Turn'd on].  I understand that they have the
> uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> \Windows\WinSxS\... Is there a Class within the Framework that turns on
the
> theme, or am I going to have to Import the DLL?

> I found a website that Shim'd there VB 6.0 application to be Windows XP
> Theme aware, but I would like to try and avoid that. [Creating of a
Manifest
> file]

> Any help would be great.

> Thanks,
> CJ



Thu, 30 Jun 2005 06:04:05 GMT  
 WindowsXP Theme
I was actually going to suggest that, but I couldn't get it to work, I've
installed the 1.1 framework but it's not showing up in any IntelliSense
list.

==============================================
Happy To Help,
Tom Spink

http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code


Quote:
> It's worth noting that with the 1.1 Framework you can simply call
> Application.EnableVisualStyles() no manifest needed.

> Sean Campbell
> 3 Leaf
> Early Adopter web Log
> http://radio.weblogs.com/0117167/



> > Hello All,

> > I was just wondering how this is done in .NET [either C# or VB.NET].  I
am
> > looking for a way to make my application WindowsXP Theme Aware.  Right
> now,
> > when I run my compiled application, I get the Classic Theme [even though
I
> > have the Windows XP Theme Turn'd on].  I understand that they have the
> > uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> > \Windows\WinSxS\... Is there a Class within the Framework that turns on
> the
> > theme, or am I going to have to Import the DLL?

> > I found a website that Shim'd there VB 6.0 application to be Windows XP
> > Theme aware, but I would like to try and avoid that. [Creating of a
> Manifest
> > file]

> > Any help would be great.

> > Thanks,
> > CJ



Thu, 30 Jun 2005 08:18:22 GMT  
 WindowsXP Theme
It works I've used it quite a bit.  Haven't had any problems with it showing
up in Intellisense.

Sean Campbell
3 Leaf

Quote:
> I was actually going to suggest that, but I couldn't get it to work, I've
> installed the 1.1 framework but it's not showing up in any IntelliSense
> list.

> ==============================================
> Happy To Help,
> Tom Spink

> http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > It's worth noting that with the 1.1 Framework you can simply call
> > Application.EnableVisualStyles() no manifest needed.

> > Sean Campbell
> > 3 Leaf
> > Early Adopter web Log
> > http://radio.weblogs.com/0117167/



> > > Hello All,

> > > I was just wondering how this is done in .NET [either C# or VB.NET].
I
> am
> > > looking for a way to make my application WindowsXP Theme Aware.  Right
> > now,
> > > when I run my compiled application, I get the Classic Theme [even
though
> I
> > > have the Windows XP Theme Turn'd on].  I understand that they have the
> > > uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> > > \Windows\WinSxS\... Is there a Class within the Framework that turns
on
> > the
> > > theme, or am I going to have to Import the DLL?

> > > I found a website that Shim'd there VB 6.0 application to be Windows
XP
> > > Theme aware, but I would like to try and avoid that. [Creating of a
> > Manifest
> > > file]

> > > Any help would be great.

> > > Thanks,
> > > CJ



Thu, 30 Jun 2005 14:18:25 GMT  
 WindowsXP Theme

Hmm, how did you install it? I downloaded the 1.1 framework from MS then the
1.1 SDK and installed them both, but nothing, is there something else I need
to do?

==============================================
Tom Spink

http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code


Quote:
> It works I've used it quite a bit.  Haven't had any problems with it
showing
> up in Intellisense.

> Sean Campbell
> 3 Leaf


> > I was actually going to suggest that, but I couldn't get it to work,
I've
> > installed the 1.1 framework but it's not showing up in any IntelliSense
> > list.

> > ==============================================
> > Happy To Help,
> > Tom Spink

> > http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > > It's worth noting that with the 1.1 Framework you can simply call
> > > Application.EnableVisualStyles() no manifest needed.

> > > Sean Campbell
> > > 3 Leaf
> > > Early Adopter web Log
> > > http://radio.weblogs.com/0117167/



> > > > Hello All,

> > > > I was just wondering how this is done in .NET [either C# or VB.NET].
> I
> > am
> > > > looking for a way to make my application WindowsXP Theme Aware.
Right
> > > now,
> > > > when I run my compiled application, I get the Classic Theme [even
> though
> > I
> > > > have the Windows XP Theme Turn'd on].  I understand that they have
the
> > > > uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> > > > \Windows\WinSxS\... Is there a Class within the Framework that turns
> on
> > > the
> > > > theme, or am I going to have to Import the DLL?

> > > > I found a website that Shim'd there VB 6.0 application to be Windows
> XP
> > > > Theme aware, but I would like to try and avoid that. [Creating of a
> > > Manifest
> > > > file]

> > > > Any help would be great.

> > > > Thanks,
> > > > CJ



Thu, 30 Jun 2005 20:29:55 GMT  
 WindowsXP Theme
VS 2003.  Since 2002 only utilizes dot net 1.0

Randy


Quote:

> Hmm, how did you install it? I downloaded the 1.1 framework from MS then
the
> 1.1 SDK and installed them both, but nothing, is there something else I
need
> to do?

> ==============================================
> Tom Spink

> http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > It works I've used it quite a bit.  Haven't had any problems with it
> showing
> > up in Intellisense.

> > Sean Campbell
> > 3 Leaf


> > > I was actually going to suggest that, but I couldn't get it to work,
> I've
> > > installed the 1.1 framework but it's not showing up in any
IntelliSense
> > > list.

> > > ==============================================
> > > Happy To Help,
> > > Tom Spink

> > > http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > > > It's worth noting that with the 1.1 Framework you can simply call
> > > > Application.EnableVisualStyles() no manifest needed.

> > > > Sean Campbell
> > > > 3 Leaf
> > > > Early Adopter web Log
> > > > http://radio.weblogs.com/0117167/



> > > > > Hello All,

> > > > > I was just wondering how this is done in .NET [either C# or
VB.NET].
> > I
> > > am
> > > > > looking for a way to make my application WindowsXP Theme Aware.
> Right
> > > > now,
> > > > > when I run my compiled application, I get the Classic Theme [even
> > though
> > > I
> > > > > have the Windows XP Theme Turn'd on].  I understand that they have
> the
> > > > > uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> > > > > \Windows\WinSxS\... Is there a Class within the Framework that
turns
> > on
> > > > the
> > > > > theme, or am I going to have to Import the DLL?

> > > > > I found a website that Shim'd there VB 6.0 application to be
Windows
> > XP
> > > > > Theme aware, but I would like to try and avoid that. [Creating of
a
> > > > Manifest
> > > > > file]

> > > > > Any help would be great.

> > > > > Thanks,
> > > > > CJ



Sat, 02 Jul 2005 19:35:39 GMT  
 WindowsXP Theme
Me sees... :)

==============================================
Tom Spink

http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code


Quote:
> VS 2003.  Since 2002 only utilizes dot net 1.0

> Randy



> > Hmm, how did you install it? I downloaded the 1.1 framework from MS then
> the
> > 1.1 SDK and installed them both, but nothing, is there something else I
> need
> > to do?

> > ==============================================
> > Tom Spink

> > http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > > It works I've used it quite a bit.  Haven't had any problems with it
> > showing
> > > up in Intellisense.

> > > Sean Campbell
> > > 3 Leaf


> > > > I was actually going to suggest that, but I couldn't get it to work,
> > I've
> > > > installed the 1.1 framework but it's not showing up in any
> IntelliSense
> > > > list.

> > > > ==============================================
> > > > Happy To Help,
> > > > Tom Spink

> > > > http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code



> > > > > It's worth noting that with the 1.1 Framework you can simply call
> > > > > Application.EnableVisualStyles() no manifest needed.

> > > > > Sean Campbell
> > > > > 3 Leaf
> > > > > Early Adopter web Log
> > > > > http://radio.weblogs.com/0117167/



> > > > > > Hello All,

> > > > > > I was just wondering how this is done in .NET [either C# or
> VB.NET].
> > > I
> > > > am
> > > > > > looking for a way to make my application WindowsXP Theme Aware.
> > Right
> > > > > now,
> > > > > > when I run my compiled application, I get the Classic Theme
[even
> > > though
> > > > I
> > > > > > have the Windows XP Theme Turn'd on].  I understand that they
have
> > the
> > > > > > uxtheme.dll and COMCTL32.dll Version 6.0 which is found in
> > > > > > \Windows\WinSxS\... Is there a Class within the Framework that
> turns
> > > on
> > > > > the
> > > > > > theme, or am I going to have to Import the DLL?

> > > > > > I found a website that Shim'd there VB 6.0 application to be
> Windows
> > > XP
> > > > > > Theme aware, but I would like to try and avoid that. [Creating
of
> a
> > > > > Manifest
> > > > > > file]

> > > > > > Any help would be great.

> > > > > > Thanks,
> > > > > > CJ



Sun, 03 Jul 2005 01:50:41 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Excel 2000 VBA Shell with WindowsXP

2. word and windowsXP

3. How to get all workgroup names in windowsxp?

4. WindowsXP Visual Styles

5. How to get all InternetCache file in windowsXP?

6. The use of WMI on windowsXP?

7. restriction of use WMI on windowsXP?

8. How to shut down WindowsXP?

9. Visual Studio 6 & WindowsXP

10. WindowsXP and VB

11. imgedit.ocx and WindowsXP

12. Compile Problem with VB6 + Excel + WindowsXP

 

 
Powered by phpBB® Forum Software