I have a DLL function that I am calling from a Visual Basic .net. The DLL function is umanaged and it throws error messages in throu message boxes that freeze my program until the "Ok" button is clicked. Is there any way I can automatically close the message box or prevent it from opening in the first place?