I tried to reproduce your problem, but didn't have any luck... however, I did notice that the common dialog control was one of those that got replaced by VB5 Service Pack 2.... have you installed this update yet?
Hope this does the trick.
Stan B.
>I am using VB5 Pro, and am getting an error that I cannot track down.
>
>I have a form which contains a text box, one command button, a menu and the common dialog control. In the
>menu, I have an open option, which displays a message box (warning the user that the newly opened file will
>cancel any changes made to the currently displayed text in the text box), followed by the Open common dialog
>box. When running in the VB Environment, there is no problem. However, when compiled, I receive an error 5
>after the dismissal of the msgbox, while the Open dialog box displays. There is NO intervening code between the
>msgbox function and the .ShowOpen event. If I comment out the message box, the error goes away. This error is
>not trappable, and the error message box is a generic one, not one which comes from my subroutine (which
>contains error handling). As a test, I placed a message box before a .ShowSave event, and also received the same error. Has anyone else experienced this, or have any clue as to what is going on here?
>
>TIA,
>
>Michael Urban
>
Michael.Urban@noaa.gov