Toolstrip : height locked ?

Questions about MultiCharts .NET and user contributed studies.
Fabrice
Posts: 182
Joined: 14 Jun 2011
Has thanked: 44 times
Been thanked: 30 times

Toolstrip : height locked ?

Postby Fabrice » 27 Aug 2013

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Toolstrip : height locked ?

Postby Henry MultiСharts » 30 Aug 2013

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;


Return to “MultiCharts .NET”