Trying to add a ToolStrip to a ToolStripPanel side-by-side with an existing ToolStrip

前端 未结 3 1610
你的背包
你的背包 2021-01-05 20:37

I\'m using .net 2.0 with Visual Studio 2005 and I am trying to add two different toolstrips to the top of the form such that they show up side-by-side. I want it to be like

3条回答
  •  孤独总比滥情好
    2021-01-05 21:34

    I think in your case you can get away with just setting the LayoutStyle on your ToolStrip to ToolStripLayoutStyle.HorizontalStackWithOverflow rather than need your own custom LayoutEngine.

    I asked a different question on a similar topic on how to handle layout with dynamic items to have better control of the overflow.

提交回复
热议问题