Using manifest file to create XP styles

  • Thread starter Thread starter SiJP
  • Start date Start date
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!
 
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
 
Back
Top