469,269 Members | 1,006 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,269 developers. It's quick & easy.

Using manifest file to create XP styles

There is a lot of information out there that shows you how to use a
manifest file with your .net application (exe) to enable windows xp
styles.

I am building a dll for COM interop, which contains a windows form.

How can I enable windows xp styles to this form?

(appname.dll.manifest doesn't work)

Cheers!

May 17 '06 #1
2 2618
Never mind, answered my own question:

Don't use a minfest in 1.1.... :)

System.Windows.Forms.Application.EnableVisualStyle s()
System.Windows.Forms.Application.DoEvents()
System.Windows.Forms.Application.Run(New frmConfiguration)

http://blogs.msdn.com/rprabhu/archiv.../28/56540.aspx

SiJP wrote:
There is a lot of information out there that shows you how to use a
manifest file with your .net application (exe) to enable windows xp
styles.

I am building a dll for COM interop, which contains a windows form.

How can I enable windows xp styles to this form?

(appname.dll.manifest doesn't work)

Cheers!


May 17 '06 #2
> System.Windows.Forms.Application.EnableVisualStyle s()
System.Windows.Forms.Application.DoEvents()
System.Windows.Forms.Application.Run(New frmConfiguration)
Note that this is not a cast-iron fix. You might still get an exception
thrown because of the bug in the implementation of
Application.EnableVisualStyles. I have found that the only way to be certain
is to use a manifest.

HTH

Charles
"SiJP" <si**********@gmail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com... Never mind, answered my own question:

Don't use a minfest in 1.1.... :)

System.Windows.Forms.Application.EnableVisualStyle s()
System.Windows.Forms.Application.DoEvents()
System.Windows.Forms.Application.Run(New frmConfiguration)

http://blogs.msdn.com/rprabhu/archiv.../28/56540.aspx

SiJP wrote:
There is a lot of information out there that shows you how to use a
manifest file with your .net application (exe) to enable windows xp
styles.

I am building a dll for COM interop, which contains a windows form.

How can I enable windows xp styles to this form?

(appname.dll.manifest doesn't work)

Cheers!

May 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Santhu | last post: by
2 posts views Thread by John Carron | last post: by
reply views Thread by ChrisB | last post: by
5 posts views Thread by anthony.duerr | last post: by
reply views Thread by mb | last post: by
2 posts views Thread by Atchoum | last post: by
reply views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.