TreeView with XP themes error

  • Thread starter Thread starter JB
  • Start date Start date
J

JB

When I enable XP themes using EnableVisualStyles(), the treeview control on
my form displays an old style 3D scrollbar when the form loads if items are
added to the treeview at design time.

Does anybody know a workaround?

Regards
JB
 
JB said:
When I enable XP themes using EnableVisualStyles(), the treeview control
on my form displays an old style 3D scrollbar when the form loads if items
are added to the treeview at design time.

Does anybody know a workaround?

Add the items at runtime.
 
Herfried K. Wagner said:
Add the items at runtime.

....or resize the treeview at form load (set width to 0 then reset).

A nasty workaround I know, but you shouldn't actually see it resize.
 
Back
Top