See the code attached. If you select node6, a messagebox pops up. If you drag the messagebox over the node 6, it duplicates the behaviour described in the original posting.
>I'm using a treeviewAdv. Selecting a node displays editable information about the node.
I'm using the BeforeSelect event to determine if the SelectedNode is in a valid state before a new node can be selected and cancel the event if the SelectedNode is not in a valid state. When I try to select a different node when the SelectedNode is not valid, it doesn't select the new node but it paints that node (text has a colored background) as if it were selected and the actual selected node no longer looks selected (well it has a dotted line around the text) How can I fix this issue without doing a tree refresh which freezes the screen for a couple seconds?
TreeViewAdv1.zip