|
-
Aug 19th, 2000, 07:51 PM
#1
Thread Starter
Addicted Member
This is kind of a repeat of a previous question, but this is from a different angle. Sorry!
I am writing a database application at the moment. I am really paraniod about error trapping (along with loads of other things!) and all that kind of stuff. My program has loads of error trapping code, but there's one eventually I can't account for. My program checks that the database (a Microsoft Access Database) exists when it loads up, and gives error messages if someone has deleted or moved it. However, what if the program loads, and then someone uses alt+tab or something to leave the program and delete/move the database. When they return, they may be able to avoid the error traps and cause the program to crash/mess up. How can I stop people from leaving my application unless they have used the exit button built into it? I figure I will need to disable alt+tab and de-active the start bar. I asked about hiding the start bar before, but the code didn't work!
Any suggestions?
(Maybe I don't need to do anything! If every form that uses the database has an On Error Goto DatabaseErrorHandler command in it's Form_Activate event, and the error handler is also in the activate event, would that not catch every thing? However, I would still like to hide the start bar, 'cos it obscures some of my larger forms slightly!)
Thanks very much,
Steve.
P.S. - no comments about the correctness (or otherwise) of my handle this time please!
Sent by: Steve Barker
E-mail: [email protected]
P.S. I KNOW 1 is not a prime!
See this thread: http://forums.vb-world.net/showthread.php?threadid=26485
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|