Handling Drag over events

P

Prabhakar

Is there way to recieve dragover events for Drawing page in Visio ActiveX
control?
 
P

Prabhakar

I'm using Visio ActiveX control in my application. I would like to get
DragOver feedback from the target when a target dragged over the Drawing
window.

I was able to get IDataObject for the document with the following code.
Microsoft.Office.Interop.Visio.Document doc = this.axDrawingControl1.Document;
System.Windows.Forms.IDataObject idata= new DataObject(doc);

But, I'm not able to get IDropTarget using following code.
Microsoft.VisualStudio_OLE.Interop.IDropTarget iDrop =
(Microsoft.VisualStudio_OLE.Interop.IDropTarget)doc;

How can I get the IdropTarget for the Visio drawing document?
Is there some other way I can use to detect targets dragged over the drawing
document?

As of now, I'm able to get only ShapeSheet added event.

Thanks,
Prabhakar.




But

When I drag an object like zip file over the Visio Drawing, I would like to
get DragOver event
 
M

Michel LAPLANE

The book "Visio 2003 developer's survival pack" from Graham Wideman has a
chapter dedicated to drag and drop.
I think you can find what you want in it.
Hope it can help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top