New chart at runtime
Posted: Wed Nov 11, 2009 12:26 pm
Hi
I need to be able to create a new instance of my chart at runtime. This is relatively straightforward in VB.NET by simply doing this:
Dim chart As New Steema.TeeChart.TChart
Me.Controls.Add(chart)
However this new instance has all the Steema defaults set, whereas my default chart is quite different. (Backcolour, borders, axes etc, etc)
Question is: is there a quick way to get my newly instantiated chart control to my defaults?
I need to be able to create a new instance of my chart at runtime. This is relatively straightforward in VB.NET by simply doing this:
Dim chart As New Steema.TeeChart.TChart
Me.Controls.Add(chart)
However this new instance has all the Steema defaults set, whereas my default chart is quite different. (Backcolour, borders, axes etc, etc)
Question is: is there a quick way to get my newly instantiated chart control to my defaults?