Home All Groups Group Topic Archive Search About

EnableVisualStyles() and treeview

Author
12 Apr 2005 10:10 AM
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

Author
12 Apr 2005 10:15 AM
Herfried K. Wagner [MVP]
"Sam" <samuel.berthe***@voila.fr> schrieb:
> 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'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
12 Apr 2005 11:00 AM
Sam
thanks !