Hi,
Can anyone help with what seemed to be relatively easy action, and has now plagued me for sometime.
What i require to do is change the selected "highlighted node" in my tree view when i change my current page without clicking the tree view itself.? I change page programmatically and require the tree view to correspond to the new page once it has loaded.
I have managed to get the tree view selecting the top parent node using the following code, however and attempts to achieve anything slightly more accurate i fall short.!
Sample Line Of Code Below.
Can anyone help with what seemed to be relatively easy action, and has now plagued me for sometime.
What i require to do is change the selected "highlighted node" in my tree view when i change my current page without clicking the tree view itself.? I change page programmatically and require the tree view to correspond to the new page once it has loaded.
I have managed to get the tree view selecting the top parent node using the following code, however and attempts to achieve anything slightly more accurate i fall short.!
Sample Line Of Code Below.
((
CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes[0];
Sample Line Of Code Above.
I have tried to change the selected node using the line of code below, but have had no joy..
Sample Line Of Code Below.
((
CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes["New Page Name"];
Sample Line Of Code Above.
So far all of my attempts have failed and i would be grateful if somebody could offer me some assistance. I have a feeling its staring me right in the face and i just can't see it.
Kind Regards
Chris