Put your code into BeforeNavigate event/method. It has 2 parameters: Url and Cancel. Set Cancel=.T. to prevent default IE navigation.
>I am trying to create a utility for working with images. I want to be able to display a gallery of images on a form. It would be very nice to use the browser control, but I have to be able to intercept a double click in the active-x control and then perform my own action rather than having it perform the default explorer action (navigate to a folder or open a file).
>
>Is this possible?
>
>Barring that, I am looking at possibly using a browse with images (which yields a clunky feeling interface). Or I might try to do an owner drawn list of some sort.
>
>Suggestions?
--sb--