Page 1 of 1

Toolstrip : height locked ?

Posted: Aug 27 2013
by Fabrice
I have tried several ways to change the height of the toolstrip (or its width when docked on one side). For example 100 pixels. Everything that I have tried does not work :
- ts.Autosize = false & ts.Width = 100
- ts.MinimumSize
- setting the height of a ToolStripButton to 100
I have noticed that when the toolstrip loads it seems to have the right height. And then, it is as if it was shrunk before the chart is displayed. I wonder if the height and width are locked by "something".

Thanks.

Re: Toolstrip : height locked ?

Posted: Aug 30 2013
by Henry MultiŠ”harts
Hello Fabrice,

When ts.Dock is not specified - the code will not work.
It should look like that:

Code: Select all

ts.AutoSize = false; ts.Height = 50; ts.Dock = DockStyle.Top;