Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How To Dismiss a Dialog Box Displayed by Visio Application Using

41 views
Skip to first unread message

Gideon

unread,
Aug 12, 2009, 3:53:01 PM8/12/09
to
I would like to Prevent the Display of Dialog Boxes During Automation
e.g. when programatically Off-page reference placed in Basic flow chart
shape stancile droped on page, then Popup dialog Off-Page reference dialog
that stops the automation.
Any Idea how to pypass popup dialogs


Gideon

unread,
Aug 12, 2009, 4:01:02 PM8/12/09
to
Application using VS2008 using C# or VB

Paul Herber

unread,
Aug 12, 2009, 6:11:53 PM8/12/09
to

Use Sendkeys to send an enter key to close the dialog. Google for
"Visio Sendkeys".

--
Regards, Paul Herber, Sandrila Ltd.
Visio Utilities http://www.visio-utilities.sandrila.co.uk/

John... Visio MVP

unread,
Aug 14, 2009, 10:21:58 AM8/14/09
to
"Gideon" <Gid...@discussions.microsoft.com> wrote in message
news:4054D243-3AB1-4C5D...@microsoft.com...

Take a look at "Preventing Alerts and Dialog Boxes in Visio"
http://msdn.microsoft.com/en-us/library/aa140363(office.10).aspx

John... Visio MVP

Chris Roth [Visio MVP]

unread,
Sep 1, 2009, 6:18:22 AM9/1/09
to
You should also check out the (Visio)Application.AlertResponse property.
See the developer reference for details.

You can preset a canned response if you know that a certain dialog will
appear, and you want, for example "Yes" to be pushed automatically.

It is important to reset this property as soon as possible so that you
don't get caught in bad loops like "Really Close Visio? -- NO", which
would make it hard for you to shut Visio down!

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum

0 new messages