Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intercept navigation and clicks w/ browser control on fi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Divers
Thread ID:
01340823
Message ID:
01340858
Vues:
8
I am trying to find a way to display a list of image files in a folder and allow the user select a file. I can use the browser control and navigate to "c:\images" for example, and see the explorer view of the folder. I want the user to be able to double click on a file and have my app do something based on that file selection rather than the OS.

It's like having the functionality of a getfile() dialog embedded in my form.

>I'm not sure I understand what you're doing. What are you displaying in the Web Browser control?
>
>>If I set canel = .t. it prevents navigating folders, but double clicking on a file launches the file using the associated app. Can I intercept that?
>>
>>>Put your code into BeforeNavigate event/method. It has 2 parameters: Url and Cancel. Set Cancel=.T. to prevent default IE navigation.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform