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.
"Anthony Fine" <an*****@sfa2000.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
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
"Nak" <a@a.com> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl... Hi Anthony,
This can all be done with timers, first of all you need to make a
function that will place the control exactly how you would like it in
both states (hidden and visible)
...
Private sub showHideStuff(Byval iVisible as boolean)
If(iVisible) then
'Put in visible state
Else
'Put in hidden state
End if
End sub
...
When you have made the function test it via a command button to make
sure that it hides and shows just how you would like it. Then you need
to place code in the "MouseOver" event of the control that you wish to make it visivle on,
showHideStuff(True)
Make sure that works also. Then make a timer object and in the
ellapse of the timer put the hide code. You want the timer to ellapse about 2
seconds after the mouse has left the "toolbox". Make sure that the
timer is stopped every time that the mouse cursor returns on the "toolbox" that
you are hiding.
If you have no luck in doing this let me know and I shall put an
example together for you. It's pretty straight forward, I have used similar
code to hide transports in fullscreen slideshow presentations. I hope this info
helps.
Nick.
"Anthony Fine" <an*****@sfa2000.com> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl... 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.
--
Thank you,
Anthony