How to create MSCHART on running time ?
Hi, everyone :
I want create MSCHART on running time , so I program
like this :
Dim MyChart1 as MSChart
private Sub Form_Load()
...
set MyChart1 = Controls.Add("MSChart20Lib.VtChChartType2dLine", "Chart1")
...
But the compilier tell me the " Invalid class string "
Can you help me ?
Thanks .
Re: How to create MSCHART on running time ?
private Sub Form_Load()
Dim MyChart1 as MSChart
set MyChart1 = Controls.Add("MSChart20Lib.MsChart", "Chart1")
End Sub
In addition, on the MAKE tab of project properties, Uncheck the Remove information about unused activeX controls
John G
Re: How to create MSCHART on running time ?