oForm=createobject('myForm') oForm.Show read events Define CLASS myForm AS form Top = 0 Left = 0 Height = 574 Width = 793 DoCreate = .T. Caption = "Form1" Name = "Form1" Add OBJECT MSChart AS olecontrol WITH ; Top = 2, ; Left = 2, ; Height = 550, ; Width = 778, ; Name = "MsChart",; OleClass='MSChart20Lib.MSchart.2' Procedure queryunload Clear events EndprocOr from tools\options\controls\activex controls check 'Microsoft Chart Control 6.0 SP4 (OLEDB)' is there. If not you could also check if ocx is in system32 folder.