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
-
very helpful, thanks
Paul0 -
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()
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions