>I want to create a Pageframe programmatically and add an ActiveX control to each Page, how can I do this using the AddObject() Method in the Page Object? Is it different from adding a VFP Object?
>
>Thanks in advance
>Kev
You will probably have to add the third parameter, .cOLEClass. For example I have a sub-classed MonthView control I call "VFPMonthView". I instantiate it using AddObject() something like:
THISFORM.ADDOBJECT( "oleCalendar", "VFPMonthView", "MSComCtl2.MonthView" )
where the second parameter is the class name and the third the OLE Class name. For a raw ActiveX control, I believe the second parameter would be "OLECONTROL". Someone can correct me on this if not correct.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.