Object does not Source Automation Events
I have a DLL that contains a .cls module plus a Form. I want the Form to be able to pass click events back to the .cls module. When I try to define the form to the Class module like this:
private withevents m_oform as frmPreview
I get a error message that says -> Object does not Source automation Events.
I have a sample program that does exactly what I am tryng to do but I can not figure out how to get it to work. Can anyone help?
The typing assistant also does not recognize "frmPreview" although in the program that works it does.
John G
Re: Object does not Source Automation Events
Found my own problem. You need to define the Events in the Form before it is recognized as a Automation Object.
John G