Toolstrip & Menu Header

I am trying to create a "header" like VB Studio 2005. For example the dark gray box that says "Toolbox" and has the three buttons on the right hand side. Is that a menu Toolstrip How do i create a control which looks like that

Answer this question

Toolstrip & Menu Header

  • Tikola

    Grant,

    This is basically a custom area on the side of the window. You could place a concealable panel on your form to similate this, or use a ToolStripDropDownButton on a left-docked ToolStrip control. You could also show a custom form with a ListBox when a user clicks a ToolStripButton to more closely resemble the VS 2005 approach. Check the user documentation for some examples to get you started. Both approaches are more like the tool bars in VS, but may be close enough for your purposes.

    You can of course buy this type of control from various companies (see the list at windowsforms.net). I seem to remember a free sample at codeproject.com that did this as well, but I took a quick look and couldn't find it just now.

    You may also want to look at the ToolStripContainer control, which allows a user to drag a tool strip to any side of the window. Chapter 16 of my book Windows Forms in Action includes a discuss of the various ToolStrip controls as well as the ToolStripContainer control, if you wanted a paper reference.

    Erik


  • Toolstrip & Menu Header