From the VFP Help File:
"The class must implement the events interface for the particular COM object being passed in the first parameter."
Off hand, I'd say the control does not implement the proper interface.
>Why does this not work:
>
>
>oEventSet = CREATEOBJECT("MyEvents")
>=EVENTHANDLER(ThisForm.MyControl, oEventSet)
>
>
>MyControl is an ActiveX control on the form. MyEvents is a class
>in a PRG containing the event set for the activeX control.
>
>I get a "Function argument value, type or count is invalid" error
>on the EVENTHANLDER line.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer