Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject and Microsoft Common Dialog Controls
Message
 
To
27/08/1999 11:13:53
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00258439
Message ID:
00258523
Views:
15
The common dialog has to be attached to a window, the following
code will work:

ox = createobject('form')
ox.addobject('oy','olecontrol',"MSComDlg.CommonDialog.1")
ox.oy.showopen()


>Can somebody please explain why the following does not work:
>
>
>mycommondialog = createobject("MSComDlg.CommonDialog.1")
>
>ok so far....
>
>mycommondialog.showopen()
>
>..whoops !!
>
>Common Dialog returns "Out of memory", error.
>
>I know I can use GetFile(), but I am having problems with it within an application where the _screen is invisible and no windows are present (don't ask..). The GetFile() dialog "window" appears as a tab on the task bar, but the actual window is no where to be seen.
Previous
Reply
Map
View

Click here to load this message in the networking platform