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!
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!