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

Best Answer

Answers

  • very helpful, thanks

    Paul
  • 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()
Sign In or Register to comment.