I have a treeview (which I can put on a panel if it is required) which represents a menu of options, and I want to auto-hide it like the properties or tools or any of the other panels that are in the VS.NET IDE.

Does anyone have any code or ideas or links or anything?

I wasn't sure what to search for - but I am sure this has been asked before.