TreeNode And SelectedNode visible

  • Thread starter Thread starter Polo
  • Start date Start date
P

Polo

Hi,

How can I set the SelectedNode (by code) visible in the tree (the first
visible node in the control) ?

thank's
 
This property set de selected Item but It doesn't ensure that it's visible
I search a function "EnsureVisible"
A+

Aleksey said:
Try this

treeView1.SelectedNode = treeView1.Nodes[1].Nodes[1];

Aleksey



Polo said:
Hi,

How can I set the SelectedNode (by code) visible in the tree (the first
visible node in the control) ?

thank's
 
The TreeNode class has a EnsureVisible method...

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top