TreeView AutoScroll

U

Uwe

Hi,

I'm currently writing my own UserControl, based on the TreeView control that
ships with .NET Framework 3.5. (i.e. Inherits System.Windows.Forms.TreeView).

Everything works fine, especially the Drag & Drop operation.

Just one question regarding the AutoScroll function. It appears to me that
this control has already a built in AutoScroll-function ... but it only
scrolls down and not up or even left and right.

Any idea how to influence that? I'm currently using the "SendMessage"-API to
scroll up, right and left and would also like to have control over the scroll
down functionality.

Another question as the MSDN On- and Offline-help falls short on that: What
does the ".AutoScrollOffset" property exactly mean and how can it be used?

Thanks for any help.

Uwe
 
U

Uwe

Hi Christian,

Thanks for your answer (the only one so far :)))

Well, any idea about the "AutoScroll" functionality and how to get control
over that?

Just to make sure we speak "the same language": "AutoScroll" means -in my
opinion- the TreeView scrolls all the nodes into view if the mouse comes
close to the bottom of the TreeView control, hence it scrolls down.

I would like to know how to make the TreeView scroll up? Currently I'm using
the SendMessage-API to do so, but as there is some kind of built-in
functionality I like to use this one instead of the SendMessage-API (or
overwrite this one in order to always use the Sendmessage-API).

Thanks for any idea that points me in the right direction...
Uwe
 

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