Jump to content
  • Advertisement
Sign in to follow this  
benryves

[.net] [VB.NET 2003] Treeview control doesn't like XP skinning!

This topic is 4845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Having applied an XP theme to my VB.NET application (calling Application.EnableVisualstyle()), everything appears to be themed properly: command buttons, scrollbars, checkboxes and so on all appear to be fully XP-themed. The treeview control, however, isn't. The [+] buttons appear properly, it's the scrollbar that is the problem. Sometimes it is a full blue XP scrollbar, sometimes it is grey and blocky but usually it's a mixture, with a blue scroll bar and grey arrow buttons or vice-versa. Is this "normal" behaviour? Is there any way around this that you know of? I do have an image list control attached to the tree view control, but am calling Application.DoEvents() before displaying the form as per the instructions on MSDN.

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, this is normal behaviour as far as I'm aware, and it has caused me many hours of insanity trying to fix. The best (free) solution I have found are code project custom controls like this one or if you want a complete solution (for most of the Windows XP theme bugs), try Skybound Visualstyles which is also free.

Share this post


Link to post
Share on other sites
Quote:
Original post by jystic
... or if you want a complete solution (for most of the Windows XP theme bugs), try Skybound Visualstyles which is also free.
That looks like a great bit of kit - I'll give that a go. Thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!