CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Wed, 28 Dec 2005 17:05:01 GMT

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.

CSharp/C# >> XP Look and feel in VSC#.NET

by Doug Handler » Wed, 28 Dec 2005 19:54:34 GMT


Try: Application.EnableVisualStyles(); in the program.cs file

CSharp/C# >> XP Look and feel in VSC#.NET

by Rahul Goel » Wed, 28 Dec 2005 20:01:27 GMT

You have to use third party controls
Like you can use

Component One
Magic Library

--
Best Regards
Rahul Goel

CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Wed, 28 Dec 2005 20:50:03 GMT

Thanks Mr Handler for you reply,

Unfortunately, It didn't help :(

Regards,
Joachim

CSharp/C# >> XP Look and feel in VSC#.NET

by Ignacio Machin ( .NET/ C# MVP ) » Wed, 28 Dec 2005 21:49:22 GMT

Hi,

I'm not very sure but I think that you have to use 2005 for this, 2003 does
not support visual styles.


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

CSharp/C# >> XP Look and feel in VSC#.NET

by Willy Denoyette [MVP] » Wed, 28 Dec 2005 22:33:47 GMT


This should work, what OS are you running this on and how does your manifest
looks like?

Willy.

CSharp/C# >> XP Look and feel in VSC#.NET

by Mark Ribau » Wed, 28 Dec 2005 23:34:19 GMT

the .EnableVisualStyles() works for MOST controls you'll use, but not
for things like tab pages (which, real XP styled ones are a gradient).

I have found that Skybound VisualStyles (free to use) is a great
solution. Just drag and drop it into your form, and all the controls
become XP styled. So you can just use all your regular controls and not
have to redevelop your forms.

link:
http://www.skybound.ca/developer/visualstyles/default.aspx





--
<font face="trebuchet ms">
Mark Ribau
Lead Windows Developer | <a href="www.redbugtech.com/blogs/mark.php">My
Tech Blog</a>
<a href=" http://www.redbugtech.com ">Redbug Technologies, Inc.</a> -
www.redbugtech.com
</font>

CSharp/C# >> XP Look and feel in VSC#.NET

by Mark Ribau » Wed, 28 Dec 2005 23:35:08 GMT

2003 does support a number of the controls using visual styles. (I.E.
.NET 1.1)




--
<font face="trebuchet ms">
Mark Ribau
Lead Windows Developer | <a href="www.redbugtech.com/blogs/mark.php">My
Tech Blog</a>
<a href=" http://www.redbugtech.com ">Redbug Technologies, Inc.</a> -
www.redbugtech.com
</font>

CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Thu, 29 Dec 2005 05:29:02 GMT

I'm running Win XP Pro SP2. This is my myApp.exe.manifest file:

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


Have I done something wrong?

Regards,
Joachim

CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Thu, 29 Dec 2005 05:31:03 GMT

Sorry, the file name of the manifest file is SpotOnClient.exe.manifest.

CSharp/C# >> XP Look and feel in VSC#.NET

by Michael Bray » Thu, 29 Dec 2005 05:47:27 GMT

"=?Utf-8?B?Sm9hY2hpbQ==?=" < XXXX@XXXXX.COM > wrote in



This is just a wild guess, as I have no real knowledge of manifest files...
but this line caught my eye. The angle brackets are often used in examples
as something meant to be replaced, but not used in the final version. Have
you tried without the < and > ?

-mdb

CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Thu, 29 Dec 2005 06:27:03 GMT

Good observation! However, I just tried it and it didn't work anyway.

Thanks,
Joachim

CSharp/C# >> XP Look and feel in VSC#.NET

by Sm9hY2hpbQ » Thu, 29 Dec 2005 06:32:02 GMT

Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

CSharp/C# >> XP Look and feel in VSC#.NET

by Eric Renken » Thu, 29 Dec 2005 07:11:22 GMT

I had this issue also at one time and I fixed it by creating a post build
event that would copy this file to the output directory. That way you don't
have to remember it if you ever clear out that directory or do a release
build.

Eric Renken

CSharp/C# >> XP Look and feel in VSC#.NET

by Willy Denoyette [MVP] » Thu, 29 Dec 2005 07:21:53 GMT


The manifest must be in the folder of the exe, but much better is to embed
the manifest as a resource in your executable.

Willy.

Similar Threads

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