Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Desktop Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Search

XML Feeds

Google Ads

Tags: enablevisualstyles

comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Some bugs just don’t seem to be the trouble to fix.

I had this unusual problem with a treeview (the one that can be found at System.Windows.Forms.TreeView) and disappearing icons.

Just look at this.

You can see that there is nothing wrong with the icons or the imagelist because the button just above the treeview uses an icon from the same imagelist as the treeview.

Now this seems to be a known bug. Just look at this post http://forums.microsoft.com/MSDN/ShowPost.aspx?siteid=1&PostID=965968, which is kinda funny because the OP posted on 28 nov 2006. Just 1 day shy of 2 years ago. Which makes it VS 2005. And for Microsoft it’s a known bug but fixing it is not an issue.

For those who want to fix it. Just remove this line Application.EnableVisualStyles() and then you get the following:

If you really don’t want to remove that line, then you will have to use another TreeView and ListView because both suffer from the same disease.

About the Author

User bio imageChristiaan is a forensic technician who programs on the side, although my function description says that I do IT-things for 90% of the time . I'm an avid VB.NET fan and I use lots of the ALT.Net techniques, like unit-testing, nhibernate, logging, IoC, ...
Social SitingsTwitterLinkedInHomePageLTD RSS Feed
1017 views
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback