|
-
Mar 5th, 2013, 02:47 PM
#1
Thread Starter
New Member
Moving to top of TreeView after ExpandAll()
Greetings:
I am trying to move to the top of my TreeView control after expanding all. This means that I should see the highlighted node (0) after the ExpandAll is done. But nothing I have tried does this.
Bellow is my code:
Private Sub btnExpandAll_Click(sender As Object, e As EventArgs) Handles btnExpandAll.Click
trvMasterFormat.Focus()
trvMasterFormat.ExpandAll()
trvMasterFormat.SelectedNode = trvMasterFormat.Nodes(0)
trvMasterFormat.Refresh()
End Sub
Any help in this regard woulkd be greatly appreciated.
Thanks!
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
|