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.