Results 1 to 2 of 2

Thread: Can I create events in code components?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    USA
    Posts
    1
    Hello,
    I just started making code components. Can I create events in the component, to be handled by its client(VB,Access,IE)? I'm making ActiveX DLL components. I tried setting up a component and raising an event, but it didn't work. However, in the object browser, the event is displayed. Any help would be appreciated.

    Padraig

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    You have the declare the object int the cleint using the "withevents" keyword

    Example: private withevents objName as class1

    The events you declared will then show up in the code window of the client:

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