Click to See Complete Forum and Search --> : How to disable dragging/dropping the Windows desktop icons


Yang Xiaojiang
January 4th, 2000, 05:49 PM
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!

Chris Eastwood
January 5th, 2000, 07:50 AM
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

Yang Xiaojiang
January 5th, 2000, 10:17 AM
If Visual C++ is more convenient than VB in solving the problem, I would also like to see the answer.

Thanks a lot.