The information in this article applies to:
SYMPTOMSThe Node property of the TreeView custom control has a property named Root. The Help states that Root "returns a reference to the root Node object of a selected Node." Due to the way the Root property was designed, this statement isn't always true. The Root property of a Node always returns a reference to the first root level node; that is, it returns a reference to the first node that was added with this syntax:
If the Root property is used with any descendant nodes of this first node,
it will work correctly. However, if another root level node is added with
the above line of code, then the Root property of all descendant nodes will
still return a reference to the first node added.
RESOLUTIONTo work around this problem, use the following small function to determine the Root node of a given node instead of the inherent Root property. FindRoot returns a reference to the correct root node for the specified Node object passed as a parameter.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce
Additional query words: kbControl kbVBp500bug kbVBp400bug kbVBp kbdsd kbDSupport
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |