DeselectAll() Method Problem

A

Axel101

Hello,

I'm trying to deselect all items before selecting a new one. The code is the
following:

currentApplication.ActiveWindow.DeselectAll();
Shape shape = someShape;
currentApplication.ActiveWindow.Select(shape, (short)VisSelectArgs.visSelect);

After doing this with two shapes on my page both shapes are selected. If I
add a MessageBox showing something before the DeselectAll() Method
DeselectAll() works fine.

Can someone explain what's wrong with the first code?

thanks
Axel
 

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