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. Collections and Events

Collections and Events

Scheduled Pinned Locked Moved Visual Basic
asp-nettutorialquestion
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.
  • D Offline
    D Offline
    dman7529
    wrote on last edited by
    #1

    Does anyone know how to trap events from objects in a collection? I have being trying to use delegates, but it's not trapping the events. Was this an oversight printed in the Core Reference, or is their some other trick to it?

    C 1 Reply Last reply
    0
    • D dman7529

      Does anyone know how to trap events from objects in a collection? I have being trying to use delegates, but it's not trapping the events. Was this an oversight printed in the Core Reference, or is their some other trick to it?

      C Offline
      C Offline
      CBoland
      wrote on last edited by
      #2

      I must be missing something in your problem statement, but here's what I'm thinking. If you add an event handler to an object and that object fires the event, your event handler will execute. Subsequently adding the object to a collection has no impact on the event mechanism. Are you trying to work with events raised by the collection itself, such as when items are added or removed?

      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