Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. IHTMLElement2.onscroll troubling.

IHTMLElement2.onscroll troubling.

Scheduled Pinned Locked Moved Visual Basic
csharpasp-nethelptutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MAP Tiger
    wrote on last edited by
    #1

    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 to IHTMLelement2 object and when I declare an instance of HTMLElementEvents2 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

    M 1 Reply Last reply
    0
    • M MAP Tiger

      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 to IHTMLelement2 object and when I declare an instance of HTMLElementEvents2 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

      M Offline
      M Offline
      MAP Tiger
      wrote on last edited by
      #2

      Hi It is solved now, Thanks. Thanks,

      MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups