I use a very old OCX in the project and set each property of type ShowMessages to false, which I could find. However, every so often, an error occurs deep inside its bowels and a message box appears. I know this because I run the code in a console application and see how messages pop up.
So my question is whether there is a way to prevent the display of message boxes (or any other form) in a console application or service. I have a suspicious suspicion that when the code works as a service, the same thing happens (a message box is displayed), but since there is no user interaction, the service just waits for someone to click the "ok" button; so effectively freezes.
Any ideas are welcome.
source
share