Is there a way to intercept a MsgBox() from an external application and block it using VB.Net?
For this discussion, let's say the MsgBox Title is "SQL Application" and the Message is "SQL Error - Try Again".
I have found some examples of looking for the MsgBox to pop-up (by watching for the Window title) and then sending key(s) to press OK, but I was curious if the whole process could be avoided. Otherwise, the user still sees a MsgBox or a "flash", even if it's only temporary.
Is it possible to avoid this?