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

catching com object events in c#

hi all
I'm using a com object through  c#  and I'm having trouble
catching the component's events.

the initialization code
this.axMap2.MouseDownEvent += new AxMapWinGIS._DMapEvents_MouseDownEventHandler(this.test1);

void test1(object sender,AxMapWinGIS._DMapEvents_MouseDownEvent a) {...}

does anyone has an idea why test1 method doesn't invoke when
i press on component surface ?
0
saar900
Asked:
saar900
  • 2
1 Solution
 
ptmcompCommented:
Does it work in VB6?
0
 
saar900Author Commented:
yes it does
0
 
ptmcompCommented:
What do you get by:

public void TestBtnClick(...)
{
    this.axMap2.MouseDownEvent.GetInvocationList();
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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