|
-
Jun 17th, 2011, 07:24 AM
#3
Re: Declaring ClassModule as public
Yes you can declare it as Public in a Bas Module and use it
anywhere in your project. However there is a caveat: VB
does not allow Public WithEvents in a module. So if the class
has Events you will need to declare the class WithEvents in
each module where you need it. Or you could declare it
as Public WithEvents in your main form and refer to that
instance in the other modules.
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
|