Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create Auto Hiding control like Toolbox in VBStudio?

Status
Not open for further replies.

VladimirKim

Programmer
Jan 20, 2005
49
US
How to create Auto Hiding control like Toolbox in VB Studio?
I have a lot of controls on the form, but those that I would place on the toolbox are rarely used, so I would like them not to appear on the form, but be there at the time when needed. I don't even know what to start with.Please make your suggestions. Thanks.
 
Much will depend on the way your form is laid out. In principle the task is quite easy - a simple solution would be to group the controls in question on a Panel, set to DockLeft, with the rest of the controls on a Panel set to DockFill. When the mouse is over the main panel, collapse the secondary panel by setting its width to a small value (ie 5). When the mouse is over the collapsed panel set its width to whatever is necessary to show all the controls.


Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top