So, after a quick 12 seconds of searching for "refresh desktop windows
vb.net code", I get two answers for you.


From: http://www.thescarms.com/vbasic/Shortcuts.aspx

            '
            ' Refresh the desktop to display the shortcut.
            '
            Call SHGetSpecialFolderLocationD(Me.hwnd, CSIDL_DESKTOP, lpil)
            Call SHChangeNotify(SHCNE_ALLEVENTS, SHCNF_IDLIST, lpil, 0)

From: Mattias Sjögren [C# MVP] mattias @ mvps.org

         Check out the IActiveDesktop COM interface and its ApplyChanges method.


That'll be $75 please. :)

-- Jadawin

Reply via email to