Hi,
I have a WinTree that is populated at runtime based on the users selection. Once populated the user of course selects a node, and then the program continues from there.
However, the issue I have is that I have used the example code from the Infragistics Help file to determine which node was selected and the event fires even when the user simply clicks on the Plus (+) to expand a node.
private void ultraTree1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e){UltraTree tree;tree = sender as UltraTree;UltraTreeNode aNode;aNode = tree.GetNodeFromPoint(e.X, e.Y);if (aNode != null)this.ultraTextEditor1.Text = aNode.Text; }
object
as
if
null
this
How can I determine the selected node with the event only firing when the user clicks on the node itself instead of on the expand/collapse node symbol.
Cheers
Jason
Or you could just use the AfterActivate event to trap when the active node changes. This is better, because it will also respond when the selected node changed via the keyboard.
The afterActivate event doesn't work with the OutlookExpress Style as desired. The event will be fired when the expansion indicator is clicked too. Is there another way to this?