Problem with docking

I used toolstrip to make a toolbar, and i am trying to create it along the same lines as the old MicroSoft Office Desktop Toolbar, but cannot find how to dock the toolbar to the side of the screen.

Any Help please

Jeremy



Answer this question

Problem with docking

  • Daniel G

    Try using

    ToolStrip s = new ToolStrip();

    s.Dock = DockStyle.Left;

    s.Dock = DockStyle.Right;


  • Nitron

    hi,

    there is a toolstripContainer control in your toolbox add it first to your form b4 anything and dock it in your form then add the toolstrip and the rest of your controls , run your project you will be able to move your toolstrip to top left right as you wish and, see the toolstrip properties to adjust its behaviour

    hope this helps



  • Karinita

    Still doesnt work, im trying to get it to dock or anchor not sure which one to either a window or the desktop, not great with vb, but vbexpress just refuses to work
  • Vurg

    The Office toolbar is an ancient feature that has luckily gone by the wayside.

    To replicate it may need some very heavy duty work with the Win32 API: I don't believe it can natively be done using VB. And possibly not even necessary: Windows XP (and 2000) have the ability to ceate your own docking toolbars that dock to the sides of the screen.

    For what reason do you need such a thing It's definately not a beginners or intermediate project, and would not recommend it even as a learning exersize (unless it's an exersize in frustration for you and anyone who uses it). I'd only try such a thing if you want to go into competition with someone like Stardock, who make some real nice docking toolbars ("I Program on an MacBook") and widgets.



  • Problem with docking