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. C#
  4. Another IE Browser problem

Another IE Browser problem

Scheduled Pinned Locked Moved C#
comhelpquestion
3 Posts 2 Posters 2 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.
  • T Offline
    T Offline
    Tomas Petricek
    wrote on last edited by
    #1

    Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself

    S T 2 Replies Last reply
    0
    • T Tomas Petricek

      Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      Tomáš Petříček wrote: When I use mouse wheel to scroll in the page it does nothing, Try iEvent.onmousewheel instead of iEvent.onmouseover Tomáš Petříček wrote: when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. If you receive the event, it's like preventing the web control from doing the standard handling. That's probably why the OnClick event handler is rarely used. That said, I believe that if you set IHTMLEventObj.cancelBubble = false, you can allow the event to be routed, and give it a chance to be normally processed.

      1 Reply Last reply
      0
      • T Tomas Petricek

        Hi! I'm trying to handle WebBrowser control events. I wrote program exactly as described in this document http://support.microsoft.com/?id=312777[^] but it work only partly :~ . I recieve event but WebBrowser is behaving strange. When I use mouse wheel to scroll in the page it does nothing, or when I click on button it doesn't change it's state to pushed (but i recieve event). When I remove this event handler it works ok. :confused: Thank you! i'm only pointer to myself

        T Offline
        T Offline
        Tomas Petricek
        wrote on last edited by
        #3

        I found another solution here[^]. It works fine :). i'm only pointer to myself

        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