473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XP look and feel in C# app

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

Jan 24 '07 #1
1 4699
You need EnableVisualStyles if you're in 1.1, I believe this is set in
2 by default.

http://www.codeproject.com/csharp/do...select=1488779

On 24 Jan, 22:48, "avanti" <ava...@gmail.comwrote:
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
Jan 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Abhishek Bagga | last post by:
Hi! I want my .net application to have a windows look n feel. How can i enable this. I have tried 1 or 2 third party tools but not very satisfied with them As far as possible I would like to...
0
by: Cardinal | last post by:
Greetings all, I am relatively new to programming and have some experience in C++ and Java. I would like to be able to develop applications in Windows using C++ or Visual C++ (maybe C#?). But...
2
by: Rajendra | last post by:
Hi All Can any one plz help me how to give a windows form a look & feel of XP for buttons & Grid running on win2K, I heard of Application.EnableVisualStyles and Manifest but its not working can...
20
by: Maurice | last post by:
Hi all, I have an application, designed in Visual Studio 2005, which will run mainly on Windows XP computers. If I run the application on a Windows XP computer having the Windows XP Theme...
6
by: =?Utf-8?B?TWFuaXNoIEJhZm5h?= | last post by:
Hi, I am using ASP.NET 2.0.So is it possible to give windows XP Look and Feel to my ASP.NET AJAX Website irrespective of operating system in which browser of end users are running.I want to do...
3
by: Vincent | last post by:
I work for a software company who develops a Microsoft Access based application. I am currently in the process of designing a scheduler for this application and really like the design of the...
2
by: =?Utf-8?B?TWFydGluIEFkaGll?= | last post by:
Hi All, Anyone knows where can I get Outlook Web Access (OWA) 2003 look and feel template code in asp.net 2.0? This download for windows based Outlook 2003 look and feel template....
3
by: Kevin | last post by:
With VS2005 the look and feel of dialogs created with MFC and Windows Forms is different. E.g. still of checkboxes, buttons, etc. Is it possible to achieve the same look and feel with both MFC...
9
jhardman
by: jhardman | last post by:
I'm pretty sure this is an easy question, I just can't figure out how to set the look and feel of my controls, so I am getting the default, and I want my controls to match on different platforms. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.