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. Panel Event

Panel Event

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

    Hi all, I need help with control events. In this specific case I have a panel with another control inside in a Dock.Fill mode. Now i need to catch the mouse_click event of the panel... Maybe this is a stupid question but I don't know how can I resolve it Please help me. Thanks in advance Cliffer

    C 1 Reply Last reply
    0
    • C Cliffer

      Hi all, I need help with control events. In this specific case I have a panel with another control inside in a Dock.Fill mode. Now i need to catch the mouse_click event of the panel... Maybe this is a stupid question but I don't know how can I resolve it Please help me. Thanks in advance Cliffer

      C Offline
      C Offline
      Calin Tatar
      wrote on last edited by
      #2

      You cannot catch mouse click event because you cannot click on the panel. In Dock.Fill mode, your control covers the entire panel. You may catch the click event in the control and pass it to the panel. Calin

      M 1 Reply Last reply
      0
      • C Calin Tatar

        You cannot catch mouse click event because you cannot click on the panel. In Dock.Fill mode, your control covers the entire panel. You may catch the click event in the control and pass it to the panel. Calin

        M Offline
        M Offline
        Megidolaon
        wrote on last edited by
        #3

        How do I actually do that? :confused: I tried to call one control's event (forgot which one but that shouldn't matter) and call it inside another control's click event. Yet the only thing I know how to do is to add a new EventHandler to a control's events and then add some code for it, but not how to call a event without the user explicitly triggering it.

        modified on Friday, March 6, 2009 6:01 AM

        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