Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobject and Microsoft Common Dialog Controls
Message
 
À
27/08/1999 11:13:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00258439
Message ID:
00258523
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform