TreeView with XP themes error

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
 
H

Herfried K. Wagner [MVP]

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.
 
M

Mick Doherty

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.
 

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