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. Doubt regarding classlilbrary.

Doubt regarding classlilbrary.

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

    Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:

    C B 2 Replies Last reply
    0
    • K kalaveer

      Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If a class exposes an event, and another class subscribes to it, then where those classes come from is irrelevant.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      1 Reply Last reply
      0
      • K kalaveer

        Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:

        B Offline
        B Offline
        bluewavestrider
        wrote on last edited by
        #3

        Events are only detected on Windows Forms. So you can pass whatever action you want to your class library from your Form's raised event. Dont worry about the class library being unable to handle events. Allow the Form to do that.

        Live in fragments no longer. Only connect.

        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