pascon pascon - 1 year ago 134
C# Question

WinForm chart control: Change size of chart when saving it to a file

is there a way to change size of chart when using method

from the source code?

Right now the only way I found to set the size of chart, is resize the form on which chart control (
) sits. Can I explicit set its width and height? Trying to change
doesn't work.

Answer Source

All right. The solution was so obvious that I couldn't found it thou 3 days - I had setted Chart.Dock = DockStyle.Fill, so changing Size property doesn't affect. After modified it to DockStyle.None I could change chart's size and (finally!) save it with appropriative width and height.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download