Treeview control

  • Thread starter Thread starter Anthony Fine
  • Start date Start date
A

Anthony Fine

Hello All,

I would like to have a TreeView control on a form that autohides when the
mouse leaves the area of the control, much like the Toolbox window in the
VB.Net IDE. I have searched MSDN, but came up unsuccessful, any help will
be greatly appreciated.
 
Thanks for the response. I implemented something like this earlier, and it
worked, just didn't have the clean appearance like other controls when they
autohide, such as the toolbox window and server explorer window in the
VisualBasic.Net IDE.

Anthony
 
Hi Anthony,

You mean as in the "smooth scrolling" effect? If you want to make it
move gradually rather than in 1 step you would be better off doing it in
another thread, that way it shouldn't slow down as other things occur in
your application, that was probably the only multithreaded thing I managed
to do successfully in VB6. Make a constant for the steps you wish it to
take, i.e. 1 for the smoothest effect and move it gradually,

... something like...
while toolbox.left < finalposition
toolbox.left -= 1
end while
...

It could probably be done nice than that, but don't foll yourself that
the MS implementation in the VS IDE is any better, it all works in the same
principal.

Nick.
 
Back
Top