"turning off" the Shape Search Window Management..

G

genc ymeri

Hi,
I'm reading the MSVisio2003,in "Shape Search Window Management" section it
says "in order to make Shape search invisible " basically run this command

Windows(1).ItemFromID(Visio.visWinIDShapeSearch).Visible = False

I tried to call this methods starting from axDrawing control but for some
reasons I'm missing them. Anyone would show me how can I get access to these
methods ?

Thank You in advance.

PS:
I tried AxDrawing.Document.Application etc... but I couldn't get the above
strings of the methods
 
D

Dillon Nugent [MSFT]

Here is an alternative way to do this:

Microsoft.Office.Interop.Visio.Application visioApp;

string caption;

visioApp = axDrawingControl1.Document.Application;



for(short i = 1;i<= visioApp.Windows[1].Windows.Count;i++)

{

caption = visioApp.Windows[1].Windows.Caption;

if(caption == "Shapes")

{

visioApp.Windows[1].Windows.Visible = false;

}

}


Hope this helps.
 
G

genc ymeri

Yes, it does work properly as you said.


Thanks lot.


Dillon Nugent said:
Here is an alternative way to do this:

Microsoft.Office.Interop.Visio.Application visioApp;

string caption;

visioApp = axDrawingControl1.Document.Application;



for(short i = 1;i<= visioApp.Windows[1].Windows.Count;i++)

{

caption = visioApp.Windows[1].Windows.Caption;

if(caption == "Shapes")

{

visioApp.Windows[1].Windows.Visible = false;

}

}


Hope this helps.


genc ymeri said:
Hi,
I'm reading the MSVisio2003,in "Shape Search Window Management" section it
says "in order to make Shape search invisible " basically run this command

Windows(1).ItemFromID(Visio.visWinIDShapeSearch).Visible = False

I tried to call this methods starting from axDrawing control but for some
reasons I'm missing them. Anyone would show me how can I get access to these
methods ?

Thank You in advance.

PS:
I tried AxDrawing.Document.Application etc... but I couldn't get the above
strings of the methods
 

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