CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    NY, USA.
    Posts
    4

    How to disable dragging/dropping the Windows desktop icons

    Hi, friends,

    I want to disable dragging/dropping the Windows desktop icons by a program. How can I do that? (eg. If a user drag an icon and drop it elsewhere, give a warn messagebox).

    Also, I want to disable the "New" submenu in the pop-up menu after Right-clicking the mouse on the Windows desktop. How can I do
    that by a program?

    Highly appreciated!


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to disable dragging/dropping the Windows desktop icons

    I'm not too sure about stopping users dragging / utilizing the desktop from a VB program. You can however hide the desktop / taskbar using VB code - just be careful and remember to show it again or you could be in trouble.

    See http://codeguru.developer.com/vb/articles/1752.shtml


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  3. #3
    Join Date
    Dec 1999
    Location
    NY, USA.
    Posts
    4

    Re: How to disable dragging/dropping the Windows desktop icons

    If Visual C++ is more convenient than VB in solving the problem, I would also like to see the answer.

    Thanks a lot.




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

Featured