J
Johnny
Hi all,
I am playing around with the sample codes from the 2007 sample library. I am
building a form with a visio drawing control in it. I wanted to monitor an
event using AddAdvise and EventSink. I found a couple sample codes from the
library and used them with no modification. This is how I add the event in
the form:
public Form1()
{
InitializeComponent();
AddAdvise ad = new AddAdvise();
ad.DemoAddAdvise(axDrawingControl1.Window.Application);
}
This code compiles fine but generate a COMException error without much
detail when I execute this. Is this a bug or have anyone tried this? Thanks
for the help in advance.
Johnny
I am playing around with the sample codes from the 2007 sample library. I am
building a form with a visio drawing control in it. I wanted to monitor an
event using AddAdvise and EventSink. I found a couple sample codes from the
library and used them with no modification. This is how I add the event in
the form:
public Form1()
{
InitializeComponent();
AddAdvise ad = new AddAdvise();
ad.DemoAddAdvise(axDrawingControl1.Window.Application);
}
This code compiles fine but generate a COMException error without much
detail when I execute this. Is this a bug or have anyone tried this? Thanks
for the help in advance.
Johnny