“Ghost Nodes” in System.Windows.Forms.TreeView? - by miasbeck

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 667057 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 5/6/2011 2:57:11 AM
Access Restriction Public


I have a simple form with a TreeView called treeView1 and I like to add some nodes to it in the HandleCreated handler like this:

When running this form there are actually two nodes visible! When I click the checkbox on the second node, the first node is checked/unchecked. 

using System.Windows.Forms;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()

            treeView1.CheckBoxes = true;

            treeView1.HandleCreated += delegate
                // Add one and only one node
                treeView1.Nodes.Add(new TreeNode("A Node"));

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Sign in to post a comment.
Posted by Microsoft on 5/10/2011 at 4:47 PM
Thank you for reporting this issue. Customer feedback is a critical part of a successful, impactful software product. Unfortunately another part is the reality of schedules and the need to prioritize investments according to the objectives of the product. We have evaluated the issue that you have reported and at this point in the product's lifecycle, it does not meet the criteria to be addressed. This evaluation is carefully done and considers many aspects including the cost of the fix, implications of the change, and the number of reported instances of the issue.

Many customers have found it useful to discuss issues like this in the forums (http://www.microsoft.com/communities/forums/default.mspx) where Microsoft and other members of the community can recommend ways of achieving the behavior you are interested in.

Thank you,
The Windows Forms Product Team
Posted by Microsoft on 5/8/2011 at 8:22 PM
Thank you for reporting the issue.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.These specialized experts will follow-up with your issue.
Posted by Microsoft on 5/6/2011 at 3:12 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)