How to Close a Shapes Window panel permanently

S

shailendrasingh823

Hi All,

I want to close Shapes Panel on visio drawing,This drawing has been
loaded by a drawing control.

If I use newDocument.Application.DoCmd(1669) this line it will close
the Shapes Panel(it's a toggle),
According to my requiremet I have to redraw the drawing many times for
update latest information availabele.

So this line newDocument.Application.DoCmd(1669) gives only toggle
behaviour.

So alternately Shape Panel will close & open .

I want a permanent close option which will close the Shapes Panel
forever till my program is running.


Shail
 
S

shailendrasingh823

Hi All,

I want to close Shapes Panel on visio drawing,This drawing has been
loaded by a drawing control.

If I use newDocument.Application.DoCmd(1669) this line it will close
the Shapes Panel(it's a toggle),
According to my requiremet I have to redraw the drawing many times for
update latest information availabele.

So this line newDocument.Application.DoCmd(1669) gives only toggle
behaviour.

So alternately Shape Panel will close & open .

I want a permanent close option which will close the Shapes Panel
forever till my program is running.

Shail


Hi All,

I tried this way .

That methos can close all windows but finaly Shapes palete is still
there which is not closing.Any clue about this.How can i close that
Shapes palete.

Visio.Application myapplication= drawingControl1.Window.Application;

Visio.Documents mydocuments = myapplication.Documents;

Visio.Windows mywindows =
myapplication.Windows[1].Windows;

Visio.Window window = null;

short numwindows = mywindows.Count;

for (short i = 1; i <= numwindows; i++)
{
window = mywindows;
window.Visible = false;
}
 
J

JuneTheSecond

Please, check DoCmd and parameter visCmdShapesWindow in the help document.
In VBA, Application.DoCmd visCmdShapesWindow acts as toggle switch to open
and close shapes window. It would be applicable to drawing control, too.
 
S

shailendrasingh823

Please, check DoCmd and parameter visCmdShapesWindow in the help document.
In VBA, Application.DoCmd visCmdShapesWindow acts as toggle switch to open
and close shapes window. It would be applicable to drawing control, too.

Hi June,

Thanks for your reply,.Here I am using DoCmd command like this
"myapplication.Window.Windows.get_ItemFromID(1669);" or
drawingControl1.Window.Application.DoCmd((int)Visio.VisWinTypes.vi);

or application.DoCmd("There is no any command like visCmdShapesWindow
"); & it's giving me message box Request operation is presently
disabled, &
newDocument.Application.Window.Windows.get_ItemFromID((int)Microsoft.Office.Interop.Visio.VisWinTypes.visWinIDPanZoom).Visible
= true; in this also I am getting "Invalid Windows Idetifier".

So Any how I am not able to use any type of window & I am not getting
that option visCmdShapesWindow.

Shail
 

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