Prevent design changes to form

gpass

New member
Local time
Today, 14:03
Joined
Jun 30, 2006
Messages
9
I need to prevent design changes to a particular form without using ULS or mde. I am hoping someone has some code to accomplish this.
Thanks in advance
 
Very strange request. It's like saying, I want help locking my fence so someone can't get in, but you can't use a lock and you can't block the opening.

I can understand not wanting to use ULS (I hate it and don't use it), but any particular reasons why you can't use an MDE?
 
I spent considerable time working on a form for an individual with his db and need to lock it down so that he or someone else can't change it. I know that if I can find a way through code, it will not be fool proof, but better than nothing. Your thoughts are greatly appreciated.
 
You could implement a login where it would check to see if you were an administrator and then let you close the form without closing the program (using a boolean flag on the Unload event of the form so that if it isn't the proper id, unloading the form will close the program). If you do that, then if they close the form, the program will close and if they try to go into design form, it acts as if it is unloading which would cause the same quitting of the program.
 

Users who are viewing this thread

Back
Top Bottom