CSharp/C# >> XP look and feel in C# app

by avanti » Thu, 25 Jan 2007 06:48:48 GMT

Hi,

I want to have XP style controls in my C# app. I created the manifest
file in my app folder that looks like this.

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

When I try to build, I get an error:

Error 14 Could not find file 'Microsoft.Windows.Common-Controls,
Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df,
ProcessorArchitecture=X86, Type=win32'. MyApp

I tried adding reference to comctl32.dll and it says the assembly is
not valid. Am I missing something?

Thanks,
Avanti


CSharp/C# >> XP look and feel in C# app

by DeveloperX » Thu, 25 Jan 2007 07:18:45 GMT


You need EnableVisualStyles if you're in 1.1, I believe this is set in
2 by default.

http://www.codeproject.com/csharp/dotnetvisualstyles.asp?df=100&forumid=6645&exp=0&select=1488779

Similar Threads

1. XP like Look n Feel in Window Application (C#)

Hello Everybody,
I am doing project in which C# is Front-End. Projetc is Desktop Application.
And I want to give XP like Look n Feel to all controls & form of
Application. This look n feel must work on previous edition of Windows Like
(98,2000,ME,WINNT).
I want apply this look n feel to controls loke
Tabs,Toolbar,Form,Radio,CheckBox,Button,
DataGrid,Menu etc.
Please help me in this regard.


2. xp look and feel for winforms controls in non xp-based systems - .Net Framework

3. XP Look and feel in VSC#.NET

How can I get the Win XP look and feel in Visual Studio C# .NET? I have
tried the MSDN example with the manifest file, but it doesn't seem
to help.

4. Windows XP look n Feel - CSharp/C#

5. Getting XP Style look and feel

How do i get XP Style look and feel for Controls in C# 
window application. All the controls i am using are Custum 
controls designed by inheriting .NET Common controls.

6. Win XP look n Feel for Menus,Toolbars - CSharp/C#

7. XP Look And Feel in VSC++6 and VSC++.NET

How can I get the Windows XP look and feel in Visual Studio C++ 6 and
in Visual Studio C++ .NET?