I am using VB.NET 2010 and AutoCAD OEM 2014 (though for Development I use regular AutoCAD 2014). I run Visual Studio, and it opens AutoCAD automatically. Then I NETLOAD my app, which opens a new vb.net form. Then my user can draw different entitites onto the AutoCAD pallette.
Of course it's easy to close the VB form, but how can I close the full AutoCAD program programatically from my VB form? I've tried AcadApp.Quit() from my VB form but it does nothing.
The reason that this is important not to leave it to the user to close it is that I check for a valid license from VB, and if there is none, I don't want the user to be able to continue to use AutoCAD.
Also, what/where is the reference manual to find examples of using VB.NET and AutoCAD?
thanks in advance!
Solved! Go to Solution.
Solved! by sszabo. See the answer in context.
Environment.Exit(0) seems to work nicely, and I like the 'brute force' approach since the user no longer has valid use of the program if it reaches this point. Thanks very much!
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!