Treeview Focus problem

G

Guest

I have a problem with MyTreeview.selectedNode = MyNode. I have a large tree
and sometimes the selected node ends up out side the viewed area and I have
to scroll to find it. Is there a way I can program the selected node to
always be visible?
 
C

Claes Bergefall

Hmm, maybe I'm misunderstanding what you want to do
Could you explain in more detail please

If all you want to do is ensure that your newly selected
node becomes visible in the tree (from a position above/below
the visible area) EnsureVisible should work. In what
direction are you scrolling when you do it manually?
Are we talking about horizontal scrolling perhaps? If so,
EnsureVisible won't help. You'll need P/Invoke and
SetScrollPos for that

/claes
 
G

Guest

I have not even found any horizontal scroll bars.
I have a problem with vertical scrolling. EnsureVisible does not work. I
have more than 100,00 items in my treeview.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Large treeview scrolling 7
Navigation in a Treeview control 3
Treeview Index problem 1
TreeView Control 1
Treeview scroll problem 2
Search Treeview 2
treeview 3
Extending TreeView and TreeNode 2

Top