VB 6.0 - Handling events from a c++ ocx - Asked By Kathy Lori on 21-Mar-12 01:24 PM

I have a form with contains a c++ ocx control.  The control has a context menu on it and I want to pick up when the user selects a particular item on the context menu.  For instance, they would select item x from the menu and the vb app would then bring up a particular form.  I'm just not sure how to wire this thing up.  Any help would be greatly appreciated.  Thanks.

Kathy Lori
D Company replied to Kathy Lori on 22-Mar-12 01:29 AM
refer this MSDN article , how to handle such things
Dim WithEvents X as your control

Private Sub X_MyEvent(ByVal MyParm as Variant)  
//here u can check control name .its property and respective event
 End if 

Public Sub NewEvent
Set X =
End Sub 
If you activate the event after NewEvent then X_MyEvent will be handling the events for control Y,

Kathy Lori replied to D Company on 23-Mar-12 01:13 PM
Actually, this link helped me the most: