IHTMLElement2.onscroll troubling.
-
Hi I want to catch the
IHTMLElement2.onscroll
even and using the following code:AddHandler aBody2.onscroll, New mshtml.HTMLElementEvents2_onscrollEventHandler(AddressOf Me.aBodyEvents_onscroll)
but VS2008 is saying that onscroll is not an event of
IHTMLElement2
, please tell me how to attach to this event. Another approach I used is as following: This event is appearing as an object toIHTMLelement2
object and when I declare an instance ofHTMLElementEvents2
using following:Dim WithEvents aBodyEvents As HTMLElementEvents2_Event
aBodyEvents = DirectCast(document.body, HTMLElementEvents2_Event)then VS2008 is showing that it has the onscroll event but it doesnt fire at all. Please help me. Thanks and Regards,
MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP
-
Hi I want to catch the
IHTMLElement2.onscroll
even and using the following code:AddHandler aBody2.onscroll, New mshtml.HTMLElementEvents2_onscrollEventHandler(AddressOf Me.aBodyEvents_onscroll)
but VS2008 is saying that onscroll is not an event of
IHTMLElement2
, please tell me how to attach to this event. Another approach I used is as following: This event is appearing as an object toIHTMLelement2
object and when I declare an instance ofHTMLElementEvents2
using following:Dim WithEvents aBodyEvents As HTMLElementEvents2_Event
aBodyEvents = DirectCast(document.body, HTMLElementEvents2_Event)then VS2008 is showing that it has the onscroll event but it doesnt fire at all. Please help me. Thanks and Regards,
MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP