Lauching Visio 2007 Dialog Boxes

A

Asif

Hi all,

I am working on application that uses Visio 2007 Drawing Control. I am
using Docmd Command to launch different Dialog Boxes like Font, Line
etc. Some commands runs well but if I click the Cancel button of any
Dialog Control, control throws an exception.

I used IOleCommandTarget COM interface and it solves the issue of
throwing exception on clicking Cancel button of each Dialog Form.

But there is another issue that was related to using Spell Check
Dialog Form that is clicking on OK button of Message Box containing
text "The spelling check is completed" , the mouse pointer converts to
"Hour Glass" and still the same unless "ESC" key is press.

I also used the following commands to set focus on control but still
did not work.

VisioDrawingControl.Focus()
SendKeys.SendWait("{F7}")

Is there some other way to solve it?

Thanks

Asif
 

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