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. Events in vb.net

Events in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharptutorialquestion
3 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.
  • U Offline
    U Offline
    udikantz
    wrote on last edited by
    #1

    hi , i have a question about events in vb.net , im looking for a similar functionality to c# event registering , like how could i "unregister" an event during run time and then register it back. for example in c# myclass.myEvent -= new MyEvent(myHabdler); [code block , that i dont want the event will fire] myclass.myEvent += new MyEvent(myHabdler); thank you for your time!

    Net

    L 1 Reply Last reply
    0
    • U udikantz

      hi , i have a question about events in vb.net , im looking for a similar functionality to c# event registering , like how could i "unregister" an event during run time and then register it back. for example in c# myclass.myEvent -= new MyEvent(myHabdler); [code block , that i dont want the event will fire] myclass.myEvent += new MyEvent(myHabdler); thank you for your time!

      Net

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, I suggest you read up on the AddHandler and RemoveHandler methods. They serve that very purpose. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


      U 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, I suggest you read up on the AddHandler and RemoveHandler methods. They serve that very purpose. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        U Offline
        U Offline
        udikantz
        wrote on last edited by
        #3

        Thank you its exactly what i was looking for.

        Net

        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