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. UnTrapping of Mouse Events

UnTrapping of Mouse Events

Scheduled Pinned Locked Moved C#
2 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.
  • W Offline
    W Offline
    wheelerbarry
    wrote on last edited by
    #1

    Is there an easy way of passing mouse events from a control to the form below in, e.g i have a label on the form and want any mouse events that happen on the label to be passed to the form underneath it. I cant just disable the label (e.g. label.Enabled = false) as i still want the label to be able to respond to the events before the form. My only idea is to send another message to the form when the label recives it, but this seems a little long winded. Barry :confused:

    D 1 Reply Last reply
    0
    • W wheelerbarry

      Is there an easy way of passing mouse events from a control to the form below in, e.g i have a label on the form and want any mouse events that happen on the label to be passed to the form underneath it. I cant just disable the label (e.g. label.Enabled = false) as i still want the label to be able to respond to the events before the form. My only idea is to send another message to the form when the label recives it, but this seems a little long winded. Barry :confused:

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

      wheelerbarry wrote:

      My only idea is to send another message to the form when the label recives it, but this seems a little long winded.

      And it's the only way to do it. Mouse clicks will not go to all (or selected) windows beneath the spot where the mouse was. You actually have to create a new mouse message and manually send it to the windows you want. For this, you'll have to have the window's handle (hWnd). RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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