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. Hey all, i have a bit of a problem with event handlers...

Hey all, i have a bit of a problem with event handlers...

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

    Say i had a main class like.. class MainClass : Form and i had another class class Control can I add a function to an event handler through the Control class to the mainclass? if not is there a way around this? any solutions will be appreciated thx for the help. :):confused::) IM PROUD TO BE A GMAIL;

    A 1 Reply Last reply
    0
    • T tom_dx

      Say i had a main class like.. class MainClass : Form and i had another class class Control can I add a function to an event handler through the Control class to the mainclass? if not is there a way around this? any solutions will be appreciated thx for the help. :):confused::) IM PROUD TO BE A GMAIL;

      A Offline
      A Offline
      ACorbs
      wrote on last edited by
      #2

      If I am reading you correctly, then the answer is yes. ((MainClass) this.ParentForm).MyEvent += new ...

      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