P
PKarbhari
We are trying to develop a new GUI for our products using Visio (and C#).
This requires that we detect double-clicks on all shapes and take appropriate
actions.
I am hosting the Visio Drawing Control on my Windows Form and use the .src
property to load .vsd files.
On loading (or reloading same or different) files I set QUEUEMARKEREVENT in
the double-click event cell for all the shapes programatically and then
listen for these events in my code (In actual implementation, these will be
added during shape addition as needed). Everything works as expected for a
while (shown through a simple MessageBox) and then it stops sending events.
Sometime after loading a file, sometime on resize and sometimes with no
special actions. I am double-clicking a a rapid pace to make sure that it can
withstand any end-user behavior.
If I am running in debug mode, I get an exception indicating separation of
underlying RCW. I have read some posts similar to this and tried to use
anything I can find there but with no luck. I can post my code if it helps
but it is pretty much out of the Visio documentation.
Any help would be appreciated as we quickly need to decide if we should use
Visio as the GUI soution.
This requires that we detect double-clicks on all shapes and take appropriate
actions.
I am hosting the Visio Drawing Control on my Windows Form and use the .src
property to load .vsd files.
On loading (or reloading same or different) files I set QUEUEMARKEREVENT in
the double-click event cell for all the shapes programatically and then
listen for these events in my code (In actual implementation, these will be
added during shape addition as needed). Everything works as expected for a
while (shown through a simple MessageBox) and then it stops sending events.
Sometime after loading a file, sometime on resize and sometimes with no
special actions. I am double-clicking a a rapid pace to make sure that it can
withstand any end-user behavior.
If I am running in debug mode, I get an exception indicating separation of
underlying RCW. I have read some posts similar to this and tried to use
anything I can find there but with no luck. I can post my code if it helps
but it is pretty much out of the Visio documentation.
Any help would be appreciated as we quickly need to decide if we should use
Visio as the GUI soution.