Item image lost in TreeView using Application.EnableVisualStyles();

  • Thread starter Thread starter Thomas Wang
  • Start date Start date
T

Thomas Wang

I want to let my app support XP theme,since I use .Net
1.1 so I and the Application.EnableVisualStyles();
like this
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}

but after that,my Treeview lost the item image!
Why?
Thank you!
 
Hello,

Thomas Wang said:
I want to let my app support XP theme,since I use .Net
1.1 so I and the Application.EnableVisualStyles();
like this
static void Main()
{
Application.EnableVisualStyles();

Insert "Application.DoEvents()" here (sometimes that helps).
Application.Run(new Form1());
}

but after that,my Treeview lost the item image!

Regards,
Herfried K. Wagner
 
Back
Top