Trigger event on shape drag & drop in Visio Drawing Control (embedded in windows form, VB.NET)
Posted on 2009-03-31
I have a Visio ActiveX Drawing Control (axMicrosoft.Office.Interop.VisOcx.AxDrawingControl) embedded in my VB.NET windows form. I am able to dynamically draw shapes on the Visio page. What I need to do next is allow the user to drag & drop a shape, then pop up a message box with the new visio drawing coordinates.
Problem is, I can't figure out which event is triggered by dragging and dropping a shape in the control. I have put several of the control's events in my code, and none are firing.
Does anyone know which event is associated with the shape drag & drop action? Also, is there an easy way to determine the coordinates of the dropped shape in this event using a value such as eventargs X and Y?