|
-
Feb 3rd, 2000, 07:39 PM
#1
Thread Starter
Junior Member
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
-
Feb 4th, 2000, 01:59 AM
#2
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
-
Feb 4th, 2000, 03:12 AM
#3
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|