CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    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

  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured