471,605 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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.
Dec 28 '05 #1
16 2768
Try: Application.EnableVisualStyles(); in the program.cs file
"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.

Dec 28 '05 #2
You have to use third party controls
Like you can use

Component One
Magic Library

--
Best Regards
Rahul Goel
Dec 28 '05 #3
Thanks Mr Handler for you reply,

Unfortunately, It didn't help :(

Regards,
Joachim

"Doug Handler" wrote:
Try: Application.EnableVisualStyles(); in the program.cs file
"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.


Dec 28 '05 #4
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

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.

Dec 28 '05 #5

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.


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

Willy.
Dec 28 '05 #6
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/vis...s/default.aspx
Rahul Goel wrote:
You have to use third party controls
Like you can use

Component One
Magic Library

--
<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>
Dec 28 '05 #7
2003 does support a number of the controls using visual styles. (I.E.
..NET 1.1)

Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

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

--
<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>
Dec 28 '05 #8
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

"Willy Denoyette [MVP]" wrote:

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.


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

Willy.

Dec 28 '05 #9
Sorry, the file name of the manifest file is SpotOnClient.exe.manifest.

"Joachim" wrote:
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

"Willy Denoyette [MVP]" wrote:

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
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.


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

Willy.

Dec 28 '05 #10
"=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote in
news:F3**********************************@microsof t.com:
name="Microsoft.Winweb.<SpotOnClient>"


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
Dec 28 '05 #11
Good observation! However, I just tried it and it didn't work anyway.

Thanks,
Joachim

"Michael Bray" wrote:
"=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote in
news:F3**********************************@microsof t.com:
name="Microsoft.Winweb.<SpotOnClient>"


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

Dec 28 '05 #12
Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

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

Thanks,
Joachim

"Michael Bray" wrote:
"=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote in
news:F3**********************************@microsof t.com:
> name="Microsoft.Winweb.<SpotOnClient>"


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

Dec 28 '05 #13
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

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

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

Thanks,
Joachim

"Michael Bray" wrote:
> "=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote in
> news:F3**********************************@microsof t.com:
>
> >> name="Microsoft.Winweb.<SpotOnClient>"
> >
>
> 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
>

Dec 28 '05 #14

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

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

Thanks,
Joachim

"Michael Bray" wrote:
> "=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote in
> news:F3**********************************@microsof t.com:
>
> >> name="Microsoft.Winweb.<SpotOnClient>"
> >
>
> 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
>


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.
Dec 28 '05 #15
Just by embedding it will it use that manifest or do you need to do
something special. You have caught my interest on how to do this.

Eric Renken

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:Oi*************@TK2MSFTNGP09.phx.gbl...

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

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

Thanks,
Joachim

"Michael Bray" wrote:

> "=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote
> in
> news:F3**********************************@microsof t.com:
>
> >> name="Microsoft.Winweb.<SpotOnClient>"
> >
>
> 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
>


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.

Dec 30 '05 #16
Add the manifest file as a "resource" to your project.

Willy.

"Eric Renken" <Er*********@newsgroup.nospam> wrote in message
news:Oc*************@TK2MSFTNGP12.phx.gbl...
Just by embedding it will it use that manifest or do you need to do
something special. You have caught my interest on how to do this.

Eric Renken

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:Oi*************@TK2MSFTNGP09.phx.gbl...

"Joachim" <Jo*****@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Yes! Now it works. I just forgot to copy the manifest file to the Debug
folder. Thanks!

"Joachim" wrote:

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

Thanks,
Joachim

"Michael Bray" wrote:

> "=?Utf-8?B?Sm9hY2hpbQ==?=" <Jo*****@discussions.microsoft.com> wrote
> in
> news:F3**********************************@microsof t.com:
>
> >> name="Microsoft.Winweb.<SpotOnClient>"
> >
>
> 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
>


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.


Dec 30 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Abhishek Bagga | last post: by
2 posts views Thread by Mas L via DotNetMonster.com | last post: by
reply views Thread by Cardinal | last post: by
1 post views Thread by Joachim | last post: by
20 posts views Thread by Maurice | last post: by
6 posts views Thread by =?Utf-8?B?TWFuaXNoIEJhZm5h?= | last post: by
3 posts views Thread by Vincent | last post: by
3 posts views Thread by Kevin | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

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.