Results 1 to 2 of 2

Thread: Desktop Icon/Shortcut

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Australia
    Posts
    4

    Desktop Icon/Shortcut

    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

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    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.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width