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.
Toolstrip : height locked ?
- Henry MultiСharts
- Posts: 9165
- Joined: Aug 25 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Hello Fabrice,
When ts.Dock is not specified - the code will not work.
It should look like that:
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;