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

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

Herfried K. Wagner

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
 

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