-
Hi,
I have got a treeeview and a sstab ctrl.
Now i click a node in the trv and move the focus to sstab ctrl.Highlight on the node is deselected as focus is shifted.
Now i want the selected node to be highlighted as the focus is shifted.
pl help
Thanx
Murali
-
If you know the Index of the Node you want to highlight, then it is very easy:
TreeView1.Nodes(2).Selected = True
------------------
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
-
Right mouse click on the TreeView control, and select properties menu.
Uncheck the HideSelection option.
This makes selected node dimmed after the treeview lost focus.
You can see which node has selected after the TreeView lost its focus.
Or you can change ForeColor of node
===========================================
Private Sub tvModel_NodeClick(ByVal Node As MSComctlLib.Node)
Dim i As Integer
For i = 1 To tvModel.Nodes.Count
tvModel.Nodes(i).ForeColor = vbBlack
Next
Node.ForeColor = vbRed
End Sub
===========================================
Joon