I am using a very old OCX in a project and have set every 'ShowMessages' type property to false that I could find. Yet, every-so-often, an error occurs deep within its bowels and a message box is popped up. I know this because I run the code in a console application and see the messages pop up.
So my question is whether there is a way to prevent message boxes (or any form for that matter) from displaying in a console application or a service. I have a sneaky suspicion that when the code runs as a service the same thing happens (message box displayed) but since there is no user interaction the service just waits for someone to click the 'ok' button; so effectively it 'hangs'.
Any ideas welcome.