FYI// Re: "turning off" the Shape Search Window Management..

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: genc ymeri (genc_ymeri_at_hotmail.com)
Date: 03/10/04

  • Next message: Michael Willis: "Generate System Specifications Automatically from BPR Driven Process Models"
    Date: Wed, 10 Mar 2004 17:44:05 -0500
    
    

    Hi Dillon,
    Sometime I had dome problems with your sample code (an error occured, not
    constantly though....I think was the i++ in the end of the "for" loop....).

    Anyhow, getting the idea from your helpfull code I did something like that
    (see below in PS). I never had any problem with it.

    Just wanted to share with you. Thank you for your help :) :) :) :)

    Sincerly , genc ymeri.

    PS:

        foreach (Microsoft.Office.Interop.Visio.Window aWin in
    applicationObj.Windows[1].Windows )
        {
              if(aWin.Caption == "Shapes")
                   aWin.Visible = false;
        }

    "Dillon Nugent [MSFT]" <dillonn@online.microsoft.com> wrote in message
    news:403be701@news.microsoft.com...
    > 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[i].Caption;
    >
    > if(caption == "Shapes")
    >
    > {
    >
    > visioApp.Windows[1].Windows[i].Visible = false;
    >
    > }
    >
    > }
    >
    >
    > Hope this helps.
    >
    >
    > "genc ymeri" <genc_ymeri@hotmail.com> wrote in message
    > news:OZTn2Wx%23DHA.2524@tk2msftngp13.phx.gbl...
    > > 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
    > >
    > >
    >
    >


  • Next message: Michael Willis: "Generate System Specifications Automatically from BPR Driven Process Models"

    Relevant Pages