I’ve got a console application and I want to run it from another application. But when I invoke it from code–to call program I use ActiveXObject–it shows the console. How do I get it to not show the console? I mean, the program works but console is shown.
Share
If you make the application a Windows Application instead of a Console Application it will not show or open (or use) a Console. Your code can stay the same – and the application will still function (without ever creating a
FormorWindow).That being said, if you control the “other” application, you may want to consider making a class library instead of a separate Application. This would allow you to just include and run code within the library without starting a separate process.