Information générale
Catégorie:
Contrôles ActiveX en VFP
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement