PDA

Click to See Complete Forum and Search --> : Customizing Internet Explorer


setaside
Oct 20th, 2000, 09:18 AM
Hey guys

I am creating a custom web browser and want to be able to control the pages that a user can go to.

My problem is some websites will open in new windows. when this happens, the new site opens in an IE window, thus removing any protection that I have implemented in my own browser. How can I stop this from happening?

Also, is it possible for me to either customize or completely disable the right-click menu in IE? (i.e., The "Open in New Window" option among others)

I don't want the end users to be able to go to ANY website that is not authorized first through an admin client.

any help is greatly appreciated. thanks guys. (and gals too)

Elanor Memphis
Oct 20th, 2000, 10:34 AM
For your first question this will be an answer:

Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)

Dim f As New frmBrowser
Set ppDisp = f.WebBrowser1.object
f.WindowState = 0
Cancel = False
f.schow

Now your new windows open in the same browser you've just made.

setaside
Oct 20th, 2000, 11:22 AM
fantastic. Thank you Elanor. That has actually fixed both of my problems.