hexagon logo

VB.Net - Stop program execution

How can I stop a program from continuing if an error is encountered in my code? I've tried
ActivePartProgram.Quit
ActivePartProgram.Close
but neither have worked... Any ideas?
Parents
  • How can I stop a program from continuing if an error is encountered in my code? I've tried
    ActivePartProgram.Quit
    ActivePartProgram.Close
    but neither have worked... Any ideas?


    You need to use windows API to get hold of the 'Execution mode dialog' and 'hit' the cancel button, then you can close or quit.

    I don't have the code to post right now.
Reply
  • How can I stop a program from continuing if an error is encountered in my code? I've tried
    ActivePartProgram.Quit
    ActivePartProgram.Close
    but neither have worked... Any ideas?


    You need to use windows API to get hold of the 'Execution mode dialog' and 'hit' the cancel button, then you can close or quit.

    I don't have the code to post right now.
Children
No Data