Message 1 of 5
How do I exit a Multiple Solution VB program?
Not applicable
02-25-2007
01:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a multiple solution VB 2005 program that uses the ActiveX/COM interface in AutoCAD 2007. Everything works as expected, except that I don't know how to gracefully exit the VB program after everything is finished. Here is a copy of the program that I am running:
>CommandMethod("Run", CommandFlags.Session)> _
Public Sub Run()
CreateDrawing()
ThisDrawing.Close
ThisDrawing.Application.Quit
' How do I exit the VB program after this?
End Sub
Can somebody please tell me what I need to do to gracefully exit the VB program after everything has finished? I tried Application.Exit, but that doesn't work.
>CommandMethod("Run", CommandFlags.Session)> _
Public Sub Run()
CreateDrawing()
ThisDrawing.Close
ThisDrawing.Application.Quit
' How do I exit the VB program after this?
End Sub
Can somebody please tell me what I need to do to gracefully exit the VB program after everything has finished? I tried Application.Exit, but that doesn't work.