Connection Point event, dynamic vs. static

E

Eric

Hello,

I am capturing connection add events. The FromSheet always includes the
connector shape. If I use a dynamic connection point in my drawing (holding
down ctrl while connecting to a shape in my diagram), the ToSheet is
populated. If I use a static connection point (not holding down ctrl while
connecting) the ToSheet contains 0 shapes.

What's up?

Here's the code. I simplified the get_Cells statement to simplify the
example. My real concern is that ToSheet.Shapes.Count = 0.
***********************
case ((short) -32768 + (short) Visio.VisEventCodes.visEvtConnect):

connectionPoint = (Visio.Connects) subject;
string test1 = connectionPoint.FromSheet.get_Cells("BeginX").Formula ;
string test2 = connectionPoint.ToSheet.get_Cells("BeginX").Formula ;
(short)Visio.VisCellIndices.visCustPropsValue).Formula ;
System.Windows.Forms.MessageBox.Show("add from " + test1 + " to " + test2);

break;
*********************
 

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