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. Help !! Event not Raise in VB.net

Help !! Event not Raise in VB.net

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasehelpquestion
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.
  • S Offline
    S Offline
    stv
    wrote on last edited by
    #1

    I have created a Event in a form and raised it in another class within the same project. The "RaiseEvent" was executed in the class, but the event was not trigger in the form. Anybody have any ideas???

    O 1 Reply Last reply
    0
    • S stv

      I have created a Event in a form and raised it in another class within the same project. The "RaiseEvent" was executed in the class, but the event was not trigger in the form. Anybody have any ideas???

      O Offline
      O Offline
      OICU812
      wrote on last edited by
      #2

      I'd check first to see if the EVENT on the form has a handler. Sometimes if you delete or cut/paste a control you'll loose the handler for the event but the event stays and you're left scratching your head. Sub MyEvent(byval sender as object, byval e as system.event) handles MyClass.MyEvent -or- addHandler MyClass.MyEvent, addressOf MyEvent '<--Handler won't get deleted if you cut/paste Other thing that happens to me is some other event raises an exception and causes the RaiseEvent to fail. Especially if i have a Try Catch with an empty catch that i havent coded in a response yet(not a good practice)

      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