Why do my horizontal dashboards maintain vertical styling?

I use ToolStripContainer, which contains three ToolStrips. During development, I move ToolStrips to the positions where I want them, in a horizontal line at the top of the form, for example:

alt text

Then I close and save the form. However, if I open the form again, ToolStrips end on the left side of the ToolStripContainer as follows:

alt text

How can I hold ToolStrips in the positions I specify?

+6
c # winforms toolstrip
source share
1 answer

This is a bug with Visual Studio. I had the same problems for many years. The only way I found is to programmatically set all ToolStrips Dock properties to Right . Do this in the form constructor immediately after calling InitializeComponent .

+7
source share

All Articles