|
-
Oct 5th, 2000, 11:47 AM
#1
Thread Starter
Lively Member
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
-
Oct 5th, 2000, 12:20 PM
#2
Thread Starter
Lively Member
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|