Hello,
I can't load chart. My Chart is based on SQL server stored Proc. with one parameter.
I don't know where to looking for to resolved my problem. I have tested differents way to create a chart, with or without data, but the error message is still the same.
Can you help me ?
Could you remove this line and see if you still have the problem:
SplitContainer1.Panel2.Controls(0).Dispose()
and see if you still get the error?
I assume you are trying to remove a control from the collection. Do you mean to do this instead?
SplitContainer1.Panel2.Controls.RemoveAt(0)?
I can't solve my problem.
Can someone help me ?
thank you
I made a test to know if my container is empty or not.
If there is a control on my container, then i load my winform with chart.
The error message is on the above picture.
Thank You
What are you disposing in that one line there? Do you mean to be removing an existing control from the controls collection instead?