The InitializeDockingReceptionRectangle function refreshes the DockingRectangle property to contain the outline of the area available to floating ToolStrips. Then you just drop the library project into the solution you want to use your toolstrips in, and drop the toolstrips and toolstrip panels onto the form in the Designer, and away you go. Office CLI Overview. To add a control, simply select that control and it will be added to the ToolStrip control. Controls, the collection that each control maintains of its children, but that collection in principle can contain anything.
DockTo method to make the toolstrip dock to the main window again.
How to: Move ToolStripMenuItems
The MakeFloating function wraps up by removing the toolstrip from the Controls collection of the parent ToolStripPanel, creates a new FloatingForm, adds itself to the FloatingForm Controls collection, and resizes and repositions the form to both correspond to the size of the toolstrip and to lie at the coordinates of where the mouse pointer is, with an offset of 25 pixels in the vertical. Double-clicking on the titlebar of the FloatingForm corresponds, in Win32 programming terms, to double-clicking on the non-client area of the form. Request a new Category View All. Vojislav Stojkovic 6, 4 29 To add a control, simply select that control and it will be added to the ToolStrip control. Note that there are actually many more menu items than those that I've shown.