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. How to disable double click option in activex component control?

How to disable double click option in activex component control?

Scheduled Pinned Locked Moved Visual Basic
comtutorialquestion
3 Posts 3 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
    mathivanaan
    wrote on last edited by
    #1

    Hi I am using one activex component on my project. i want disable double click option this activex component in run time. Please give any idea or url Regards, M.Mathivanan

    L D 2 Replies Last reply
    0
    • M mathivanaan

      Hi I am using one activex component on my project. i want disable double click option this activex component in run time. Please give any idea or url Regards, M.Mathivanan

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Unregister the corresponding double-click eventhandler; There's some code that gets executed on double-click - that must be an eventhandler. Unregister that one, and the code won't be executed.

      I are Troll :suss:

      1 Reply Last reply
      0
      • M mathivanaan

        Hi I am using one activex component on my project. i want disable double click option this activex component in run time. Please give any idea or url Regards, M.Mathivanan

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        If the double-click event has been wired up in your code (possibly done by the designer), then you just need to use RemoveHandler to remove it. If the control handles its own double-click event without any intervential from your code, you cannot disable the double-click event. You'd have to modify the code in the ActiveX control in order to do that. If you don't have the source code for it, you're out of luck.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        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