Hey, I'm making an MDI, IE-based web browser (the world still doesn't have one look for it on ZDNet once i get it finished) using the WebBrowser control and I have a quesiton...
When the user goes to a website and the site tries to make a popup window, I figured out some code to prevent Internet Explorer from making its own pop-up window and to instead copy the web browser form and set the URL to the URL of the pop-up window. As shown here:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim F As New Form1
F.Show
Set ppDisp = F.WebBrowser1.object
End Sub
However, I can't figure out how to set the width/height of the new form to the width/height of what the IE window would normally be. Does anyone know how to do this? It would be greatly appreciated.




Reply With Quote