• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

How to raise event between ocx's

Can someone show me how to fire an event in one ocx and catch in the other ocx?  

I have a 'Save' button in an ocx.  when the user clicks it.....I need the other ocx to re-query my database.   Can someone please show me how to do this??



knoxxx
0
JohnnyKnoxville
Asked:
JohnnyKnoxville
  • 2
1 Solution
 
EDDYKTCommented:
if two ocx is one one form, then you can fire event from the first ocx and catch the event
from the form, then call the method on the second ocx to perform the re-query database.


Do you make both ocx?
0
 
JohnnyKnoxvilleAuthor Commented:
Yes....I have made both OCX's.  Can you show me some specifics on how to do this???



thx for the quick response.



knoxxx
0
 
EDDYKTCommented:
you can do raiseevent in the first ocx

in you form you should be able to trap this event. From this event, call the second ocx's method ( you need to use public on this method)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now