Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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