EnableVisualStyles() and treeview

S

Sam

Hi,

when I do this :


System.Windows.Forms.Application.EnableVisualStyles()

My app looks cool, but my icons in the treeview control just gone :(

Is there a way to use visual styles along with treeviews ?

Thx
 
H

Herfried K. Wagner [MVP]

Sam said:
System.Windows.Forms.Application.EnableVisualStyles()

My app looks cool, but my icons in the treeview control just gone :(

Is there a way to use visual styles along with treeviews ?

Call 'Application.DoEvents' immediately after calling 'EnableVisualStyles'.
 

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