0
Answer

TreeView in .NET v2.0 and AfterCheck ?

Ask a question
Mike

Mike

18y
1.6k
1
Has anyone run into this problem before:

If you have an event setup as follows (fleTree1 being an enhanced TreeView object):

  fileTree1.AfterCheck += new TreeViewEventHandler(checkAll);

with "checkAll" calling the following routine:

   private void checkAll(object sender, TreeViewEventArgs e)  {

      MessageBox.Show(e.Node.FullPath);
  }

If you click on the expansion box instead of the check box, the "checkAll" method is executed. This should not be occuring. "checkAll" should execute only when a check box is clicked on.  Looks like a bug in the .NET v2.0 code to me or am I missing something.