B
Brian
I'm writing a VB.Net app with the 2003 drawing control and I'm trying to determine when the stencil (shapes) window is closed so I can uncheck my custom menu. To determine if the stencil window is opened I use the following loop in Form_Load, which works great
Dim win As Microsoft.Office.Interop.Visio.Windo
Dim isOpen As Boolean = Fals
'Loop through the windows, if the shapes is shown then set the toggl
For Each win In visApp.ActiveWindow.Window
If win.ID = VisWinTypes.visWinIDStencilExplorer The
isOpen = Tru
End I
Nex
ViewStencil.Checked = isOpe
If the user closes the window I'd like to know. I've tried putting breakpoints and messageboxes in the following events and when I close the stencil explorer I don't receive a messagebox or hit breakpoints from any of them (I do with all the other windows, such as the size/pos etc). I can't find any window close events on the page object
visApp_BeforeWindowClose
visWindow_BeforeWindowClose
visApp_QueryCancelWindowClos
visWindow_QueryCancelWindowClos
Help is much appreciate
Bria
Dim win As Microsoft.Office.Interop.Visio.Windo
Dim isOpen As Boolean = Fals
'Loop through the windows, if the shapes is shown then set the toggl
For Each win In visApp.ActiveWindow.Window
If win.ID = VisWinTypes.visWinIDStencilExplorer The
isOpen = Tru
End I
Nex
ViewStencil.Checked = isOpe
If the user closes the window I'd like to know. I've tried putting breakpoints and messageboxes in the following events and when I close the stencil explorer I don't receive a messagebox or hit breakpoints from any of them (I do with all the other windows, such as the size/pos etc). I can't find any window close events on the page object
visApp_BeforeWindowClose
visWindow_BeforeWindowClose
visApp_QueryCancelWindowClos
visWindow_QueryCancelWindowClos
Help is much appreciate
Bria