I recently working on an ActiveX.exe project containing a form (Form1)
and a class module.
I want the Form1 to RaiseEvent to the class, which is possible.
I attached 2 files : project1 & project2 which are the same besides
a small thing that shouldn't change the difference between them - only if it's
if it's a bug in vb (what I think it is).
I know that =s the problem but how I can I raiseevent from the form without create this instance ?
More over in my original program wich the form in it has a lot of subs , altough I declare this check object in the class module I cant RaiseEvent after the program runs for a while.
That sounds very strange... unfortunately I ran out of ideas (yeah, like I have a lot )
Well, as a last resort you could redesign your program to fit the limitations...
Maybe you can encapsulate the form in a class module, and create/raise the event in that module instead of the form. The form would only handle/have code for it's interface, not for any other kind of functionality.