Is there anyway I can remove the red "X" in the top right corner of every form? Or is this kind of MS's built in way of letting the user always have the option to exit my program?
Many Thanks...
Printable View
Is there anyway I can remove the red "X" in the top right corner of every form? Or is this kind of MS's built in way of letting the user always have the option to exit my program?
Many Thanks...
Yes, you have to do it for each form using an API call.
Here is my FAQ on disabling it for a VBA UserForm. It will be similar for a VB 6 Form too.
http://vbforums.com/showthread.php?t=363931
right on... thanks man!
Np, but curiosity makes me ask if it was a VBA UserForm or not? :D
Yes it is.... something odd about that?
No, just with a non-VBA form the classname will be different then in my example. ;)