You really spent 12 seconds to find this as first solution doesn't
work for me, but it does almost the same I describe initially.
Second solution doesn't update icons.

Not much help sorry.

On Jun 8, 6:20 pm, Peter Smith <[email protected]> wrote:
> 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