On 3/1/07, Scott Crick (Lists) <[EMAIL PROTECTED]> wrote: > I would like to use an HTMLViewer to display some HTML-formatted text that > will include links to web-pages. However, I do NOT want the HTMLViewer to > handle displaying those external web-pages. Rather, I would like the user's > default web browser to display the link. > > I think I may be missing something in the HTMLViewer implementation. The > only way I have found to intercept a click on a link is through the > DocumentBegin event. There, it's trivial to use a ShowURL statement to > display the link in an external web browser. The problem is, the HTMLViewer > also displays the linked page, which I don't want. > > Is there another way to do what I'm needing here?
I don't know how this would work in conjunction with the first part, but as far as blocking display of a page, just put return True in the CancelClose event of the HTMLViewer control. Of course that also blocks loading the first page, so you'll want to add an inited flag to your window (or HTMLViewer subclass) that gets set to true after your intended page loads. And you'll need a reset method to set it to false at the appropriate time. Let me know if that helps. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>