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. handling ctrl+mouse click on webbrowser control in winform

handling ctrl+mouse click on webbrowser control in winform

Scheduled Pinned Locked Moved C#
questionhtmldata-structures
5 Posts 2 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.
  • H Offline
    H Offline
    hoangminhtoan
    wrote on last edited by
    #1

    I created treeview and webbrowser control.When webbrowser control load website,treeview will buil DOM tree with checkbox node.So,I want press ctrl+mouse click to highlight one element(ex. div, span,...) on webbrowser,then node at treeview will be checked respectively. How can I do handle ctrl+mouse click on webbrowser control??

    V 1 Reply Last reply
    0
    • H hoangminhtoan

      I created treeview and webbrowser control.When webbrowser control load website,treeview will buil DOM tree with checkbox node.So,I want press ctrl+mouse click to highlight one element(ex. div, span,...) on webbrowser,then node at treeview will be checked respectively. How can I do handle ctrl+mouse click on webbrowser control??

      V Offline
      V Offline
      VJ Reddy
      wrote on last edited by
      #2

      Please see this article. Easy way to add Keyboard and Mouse events to WebBrowser control[^] I think it may be helpful.

      H 1 Reply Last reply
      0
      • V VJ Reddy

        Please see this article. Easy way to add Keyboard and Mouse events to WebBrowser control[^] I think it may be helpful.

        H Offline
        H Offline
        hoangminhtoan
        wrote on last edited by
        #3

        thanks so much!

        V 1 Reply Last reply
        0
        • H hoangminhtoan

          thanks so much!

          V Offline
          V Offline
          VJ Reddy
          wrote on last edited by
          #4

          You're welcome. Thank you for the response. If you feel that the answer is helpful then you may consider to vote the answer.

          H 1 Reply Last reply
          0
          • V VJ Reddy

            You're welcome. Thank you for the response. If you feel that the answer is helpful then you may consider to vote the answer.

            H Offline
            H Offline
            hoangminhtoan
            wrote on last edited by
            #5

            By the way, I have one question. I want to get data in tag when I ctrl+mouse click on webbrowser, for example <div>abc...</div>. Then when I press ctrl+mouse click on webbrowser I will get abc..., so how can I do that? thanks!

            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