-
i have seen this done some where before.
I have a class module in my project named "Class1".
I want to have a PUBLIC EVENT that can be raised
from the main form.
so in the class module i have this:
Public event TESTEVENT(param1 as long)
---
now in the main form i have this:
dim MyClassMod as new Class1
how do i make it so when i raise the event in the class:
RaiseEvent TESTEVENT(12345)
it will call the raised event in the main form?
i know it has something to do with a "Friend" call
but i forgot how =(
thanks in advance
-
nevermind
i figured it out.
if you have a class module and you want to raise events
put this in the object:
private WithEvents CLASSNAME as CLASSMODULE
remember "WithEvents"