ArgumentException when Hiding.Showing MDI child form
Posted: Mon Nov 24, 2008 3:51 pm
I have read several threads on this and I am still not sure what a good approach is.
We have an MDI application that has mdi children containing charts. If the child form his hidden then shown we receive an ArgumentException when it hits the line "Chart.Graphics3D.BackBuffer.Render();" in the OnPaint of TeeChart.cs.
One solution that was pitched by Narcis was to set Graphics3D.UseBuffer to false, i.e. this.tChart1.Graphics3D.UseBuffer = false;
This certainly prevents the error but now the repainting looks bad when another window is passed over the chart. I read some other thread talking about DoubleBufferring but kind of got lost in the replies.
Is there a good solution to my problem, preventing the error and having a clean repaint?
Thanks,
Kevin
We have an MDI application that has mdi children containing charts. If the child form his hidden then shown we receive an ArgumentException when it hits the line "Chart.Graphics3D.BackBuffer.Render();" in the OnPaint of TeeChart.cs.
One solution that was pitched by Narcis was to set Graphics3D.UseBuffer to false, i.e. this.tChart1.Graphics3D.UseBuffer = false;
This certainly prevents the error but now the repainting looks bad when another window is passed over the chart. I read some other thread talking about DoubleBufferring but kind of got lost in the replies.
Is there a good solution to my problem, preventing the error and having a clean repaint?
Thanks,
Kevin