Solved

catching com object events in c#

Posted on 2003-11-26
3
591 Views
Last Modified: 2007-12-19
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
Comment
Question by:saar900
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Expert Comment

by:ptmcomp
ID: 9826718
Does it work in VB6?
0
 

Author Comment

by:saar900
ID: 9830368
yes it does
0
 
LVL 10

Accepted Solution

by:
ptmcomp earned 70 total points
ID: 9830516
What do you get by:

public void TestBtnClick(...)
{
    this.axMap2.MouseDownEvent.GetInvocationList();
}
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question