Closing Images
The following code closes the active image but gives me a 'are you sure' prompt, which I don't want.
I tried setting 'showprompt' property to False but it didn't solve the problem. What property should I use?
Public Sub button4_Click(sender As Object, e As System.EventArgs) Handles button4.Click
With Adjust.ImageCommands.Close(Nothing)
.Run(ThisApplication.ActiveImage)
End With
End Sub
0
Best Answer
-
Hi Paul,
Please check this forum topic that shows how to avoid prompt:
http://forums.mediacy.com/discussion/183/close-image-without-save/p1
Yuri0
Answers
Paul
You may find the code below appropriate for another CLOSE IMAGE(S) situation.
I hope this information is helpful.
-- Matt
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
'Close all open images without prompting the user
CloseAllForm.ClosingAllAction=CloseAllForm.CloseAllFormAction.actionNoAll
ThisApplication.Windows.CloseAll()