Using manifest file to create XP styles

S

SiJP

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!
 
C

Charles Law

System.Windows.Forms.Application.EnableVisualStyles()
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top