Does anyone know how to prevent the Desktop icon/shortcut from being deleted. I can remove the shortcut arrow but I would like to prevent deletion as well. Thankyou
Printable View
Does anyone know how to prevent the Desktop icon/shortcut from being deleted. I can remove the shortcut arrow but I would like to prevent deletion as well. Thankyou
I don't think this is possible in VB. Desktop icons/shortcuts are files and unless if you somehow managed to superhide them (which does not include putting it on the desktop). The icons like My Computer are NOT shortcuts - they're COM objects with special methods implemented. Unless if you either use C++ or find a good VB COM Type Library, you dan't do that, and even if you do, the user can go into the registry and delete your hwnd, therefore removing your VF.