I don't think you can do that in VFP this way.
Why can't you keep control on a form? You can save it as a class and instantiate w/o making form visible.
>Using VFP8 and creating an object in code that is based off the far point spread (fpoint.com) control version 8. If I just drop the control on a form, all is well. But if I create the control in code, it pops up a message box saying it can find the license.dat file. I contacted their support and they sent me a string to pass when creating the control in code, but no example in VFP how to do that.
>
>
>
>The string they sent is (slightly changed since they say it is proprietary information):
>
>L"Copyright (c) 1995 FarPointSpread"
>
>
>My Attempts to date:
>
>oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6")
>oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6",'L"Copyright (c) 1995 FarPointSpread" ' )
>oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6",'LCopyright (c) 1995 FarPointSpread' )
>oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6","Copyright (c) 1995 FarPointSpread" )
>
>
>All to no avail.
>
>She just sent me this example for C++, but no foxpro
>This is how you do this in VC6++: I do not have an example for fox pro.
>
> BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
>CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage,
> SysAllocString((OLECHAR FAR *)L"Copyright (c) 1995 FarPoint")); }
>
>
>
>
>
>Thanks for any input.
>
>Kirk
--sb--