basepointdesignz
Programmer
Hi peeps,
Even though I've already done a search on this subject and found a load of info on it, I thought I'd start a thread about it because my problem is a bit different from what I read about..
On my app's splash screen, I have a previous instance check, which if the program is already running and someone tries to run another one, it'll detect the second version and display a msgbox before stopping the second program in it's tracks.
When this happens the msgbox appears and the program unloads but I get a run-time error, which doesn't look too professional..
Run-Time Error: '401'
Can't show non-modal form when modal form is displayed.
How do I get around this? Should I hide the splash screen before the msgbox appears, thus causing the splash screen to lose focus - or does it get a bit more complicated than this?
Can anyone help?
Thanks,
Renegade..
Even though I've already done a search on this subject and found a load of info on it, I thought I'd start a thread about it because my problem is a bit different from what I read about..
On my app's splash screen, I have a previous instance check, which if the program is already running and someone tries to run another one, it'll detect the second version and display a msgbox before stopping the second program in it's tracks.
When this happens the msgbox appears and the program unloads but I get a run-time error, which doesn't look too professional..
Run-Time Error: '401'
Can't show non-modal form when modal form is displayed.
How do I get around this? Should I hide the splash screen before the msgbox appears, thus causing the splash screen to lose focus - or does it get a bit more complicated than this?
Can anyone help?
Thanks,
Renegade..