Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intercept navigation and clicks w/ browser control on fi
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Miscellaneous
Thread ID:
01340823
Message ID:
01340858
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform