Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview grabbing focus

Status
Not open for further replies.

groganBall

Programmer
Sep 18, 2003
6
NZ
Hi all,

I’m having a spot of bother with the TreeView Control,

I have an application with many TabPages. The first page has a TreeView attached, and the other pages change which node is to be select on the TreeView.

Now the problem I am having is whenever I go to change the node on a TreeView it seems to want to also change the tabpage as well to the first page, which is undesirable,

Does anybody know how to select a node without giving the object (treeview) focus? (I'm assuming this is what is happening)

grogan
 
I tried it and it didn't happen. Make a new solution with a tab control and a tree view and check it.
 
Cheers Koarch.,

I was sure the control was exhibiting unusual behavior…

I have narrowed it down to this piece of code:

Tree.SelectedNode = tNode;

This is very frustrating.

Ill keep working on the problem,

grogan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top