Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common Dialog Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00593067
Message ID:
00593083
Vues:
35
>>Has anyone successfully subclassed or used this control to retrieve JUST the path, rather than a filename?
>
>The Common Dialog Control doesn't have folder selection. You can use following code
Declare integer GetActiveWindow in WIN32API
>oShell = createobject("Shell.Application")
>oFolder = oShell.BrowseForFolder(GetActiveWindow(), "Please Select folder", 0 )
>? oFolder.Items.Item.Path
There're also a few files in the download section that provide such functionality.


Thanks Sergey. Actually I'm currently using a file that I downloaded from the UT, but recently discovered a problem in Win98 with that particular code. (See thread#591621)

I considered trying to subclass the Common Dialog control, but as you pointed out (and I found out, after digging through it) that I can't use it for what I need.

Thanks again,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform