Windows Develop Bookmark and Share   
 index > Windows Forms General > ToolStripPanel Layout Problem
 

ToolStripPanel Layout Problem

Hi,

I have drag and drop two toolstrips controls on MDI Form and theit LayoutStyle is set to HorizontalStackWithOverflow.

I have created ToolStripPanel control from code and added the following code:

Dim tspTop1 As New ToolStripPanel()

tspTop1.Dock = DockStyle.Top

tspTop1.Join(ToolStrip1,0)

tspTop1.Join(ToolStrip2,0)

tspTop1.Orientation = Orientation.Horizontal

Me.Controls.Add(tspTop1)

These works fine but the problem is that it does not place both the toolstrips in single row.

It creates two rows and place both vertically.


I would like to be able to place multiple toolstrips on the same row in the
ToolstripPanel? I can't imagine that this isn't possible, but i cant find a
solution for this.

Does someone know how to do this?

Thanks & Regards,

Mac

todotnetfriend  Friday, October 17, 2008 7:49 AM
Use the Join(ToolStrip, Point) overload to put the tool strip where you want it.
nobugz  Saturday, October 18, 2008 10:54 AM
Use the Join(ToolStrip, Point) overload to put the tool strip where you want it.
nobugz  Saturday, October 18, 2008 10:54 AM

You can use google to search for other answers

Custom Search

More Threads

• regarding region and graphics path+c#..
• Intercepting another Application's Events (Trap event from another application) or Triggering events in another application
• scriptcontrol
• Manage the control element in a "unique" event
• Creating PictureBox events at Runtime (C++)
• Drag & Drop, EnableAutoDragDrop
• How to capture lose focus event and reset focus
• Using Windows Image Acquistion in winforms (working) and then as a activex control (not working)
• ListBox is empty when hosted in ToolStripControlHost and ToolStripDropDown
• Why can't the text read from a file be displayed correctly?