|
-
Sep 4th, 2002, 06:37 AM
#1
Thread Starter
Fanatic Member
IE NewWindow2 event: How do I know the NewWindow's URL?[resolved]
NewWindow2 event
Upon firing of this event, a new IE window is to be created,
however, I am not able to get the URL of this to be created
window.
Anyone has idea 'bout this?
Last edited by jian2587; Sep 7th, 2002 at 01:38 AM.
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Sep 7th, 2002, 01:36 AM
#2
Thread Starter
Fanatic Member
Never mind. I've resolved it myself.
VB Code:
Dim WithEvents objExp As InternetExplorer
Dim WithEvents objNewExp As InternetExplorer
Private Sub objExp_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set ppDisp = New InternetExplorer
Set objNewExp = ppDisp
End Sub
Private Sub objNewExp_BeforeNavigate2(pDisp As Object,...URL As Variant,...)
MsgBox URL
objNewExp.Quit
Set objNewExp = Nothing
End Sub
I'm doin' this for a popup blocking program...
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|