Handling a TreeView scrollbar

G

Guest

I have a split container, with a tree view docked on the left panel and a
drawing panel docked on the right one. I need to synchronize vertical
scrolling for the tree view and the drawing panel.

Is there any way to get access to the tree view control's vertical scroll
bar? Although the vertical scroll bar appears if we set the scrollable
property to true, I could not find a way to handle tree view scrolling by
code.

Thanks
 
R

Robbe Morris [C# MVP]

If memory serves me correctly, you would set the .SelectedNode and
then set is .EnsureVisible property or something similar. The tree
should auto scroll for you then.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 

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

Top