Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Bypass "Close Confirmation Dialog Box"

My VB program shells out to start an external EXE program which creates an open window. When I close this window in VB code, an "are you sure you want to close this program" confirmation dialog box pops up that must be manually closed. How do I do that in VB code?... to bypass or interrupt the dialog box? The code I am using to close the app is:

' The app may issue a close confirmation dialog
' depending on how it handles the WM_CLOSE message.
For i = 1 To colHandle.Count
glHandle = colHandle.Item(i)
Call SendMessage(glHandle, WM_CLOSE, 0&, 0&)

Thanks for any help - wballen
Sign In or Register to comment.