
Handling NewWindow Event Of WebBrowser Control
I am using VB6 in W2000 with IE5.5, and wish to alter the behaviour of the
NewWindow2 event of the WebBrowser Control.
Currently 3 options can be coded in the NewWindow2 event handler
1 - cancel the navigation
2 - navigate to a new IE window (default)
3 - navigate to a new WebBrowser window (many limitations)
I really want to continue the navigation in the top window of the current
WebBrowser without opening any new windows at all.
Can anybody point me in the right direction?
I was really hoping to find something like the sample code (HtmlView.vbp) from
Serge Baranovsky of www.vbcity.com that disables the WebBrowser's right click
context menu.
Many thanks
Donald Cruttenden