Mike

Mike

  • NA
  • 2
  • 0

TreeView in .NET v2.0 and AfterCheck ?

Dec 31 2005 3:49 PM
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.