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