From: a@... (a) Date: 2002-02-05T07:59:54+09:00 Subject: Re: Win32ole event callback? In article , a@a.a says... > In article <200201301036.TAA17210@ums509.nifty.ne.jp>, > masaki.suketa@nifty.ne.jp says... > > In message "Re: Win32ole event callback?" > > on 02/01/29, a writes: > > > > > I have no problem understanding what it does. If you look at the code, > > > you see that ruby never actually communicates with the IE object outside > > > of its public methods and properties. for Example, if i capture the > > > "NewWindow" event, that's great, but i can't respond to that event in > > > any way outside of the the objects public methods. (IE: I cant stop or > > > close the pop-up. ) > > > > Hmm... > > I have not used Visual Basic, so I am afraid of misunderstanding you. > > Can you respond to "NewWindow" event of IE object when you use Visual Basic? > > If so, could you show me the Visual Basic code which treats > > "NewWindow" event of IE object? > > > > Regards, > > Masaki Suketa > > > > > Here is a sample: > > Private Sub ie_NewWindow2(ppDisp As Object, Cancel As Boolean) > '//prevent the new window // > Cancel = True > End Sub > Sorry just to clarify... "ie" is the name of the internet control, same as "ie = WIN32OLE.new ('InternetExplorer.Application')" in Ruby