Thanks..BUT the ALT+F4 is still working .
Thanks alot for ur concern and time....
everything is Ok except that the ALT+F4 combination is still working and it as usual cuase the applicaiton to terminate ...in which i don't wan't the user to be able to do...
any Help...
Thanks in advace
Have you even tried the code?
They CAN'T. Alt_F4 is just a shortcut for the CLOSE button on the caption bar. BOTH of my codes prevent the form from unloading in any way except for the Unload function, so NO USER CAN USE Alt_F4 for exiting.