问题
When using a Gantt series in a TeeChart control of Steema TeeChart for .NET 2013 4.1.2013.05280 in VS2010, the following exception occurs within the chart after saving and reopening the parent form.
Several tries to open the form later, the Designer magically works again, but it has added an awful lot of new resources to the form's .resx file (and accesses them in InitializeComponent respectively).
This behavior can be reproduced with any application using a simple Windows Form, that contains a TeeChart control and a default gantt series with random values. I fear this is a followup bug to TF02016535, that has been fixed in this build.
回答1:
Thanks for reporting. I could reproduce the issue and added it (TF02016626) to the defect list to be fixed for next releases. We have found that in VS2012 saving the form (form only, not the complete project) before closing it doesn't produce the exception. Alternatively, the only solution I can think of for now is using Gantt series at run-time, for example:
Steema.TeeChart.Styles.Gantt gantt1 = new Steema.TeeChart.Styles.Gantt(tChart1.Chart); gantt1.FillSampleValues();
来源:https://stackoverflow.com/questions/17345334/exception-and-endlessly-growing-designer-generated-code-in-initializecomponent-w