Click to See Complete Forum and Search --> : How to create MSCHART on running time ?


SUNRISE
March 26th, 2001, 06:32 PM
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 .

John G Duffy
March 26th, 2001, 07:45 PM
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

SUNRISE
March 27th, 2001, 02:53 AM
Thank you ,John G .