1. use the manifest (compile as resource or as external file)
2. call the EnableVisualStyles method for Application in Main():
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new frmMain());
}
1. use the manifest (compile as resource or as external file)
2. call the EnableVisualStyles method for Application in Main():
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new frmMain());
}
Just found: if themes enabled via EnableVisualStyles then images in ListView control are not shown.
But if to add the manifest as resources, the images drawn correctly.
A nice article about manifest and MS Visual Studio with step-by-step instructions:
http://msdn.microsoft.com/en-us/library/Aa289524
Leave a Reply
You must be logged in to post a comment.