Solved

catching com object events in c#

Posted on 2003-11-26
3
585 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is "public object" in C#? 3 47
Media.Imaging 1 18
PrintingFoundIt(Almost!(Damn!)) 1 27
Printing 1 51
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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