how to refresh desktop items in c#

T

Tee

Hi,

How do i refresh windows destop in c#? currently with my c# app, it deletes
an existing desktop icon and recreates a new one base on the new
informations the user provided. All seems to work except the deleted icon
just sitting there and disappeared as soon as i pressed F5 (or refresh).

Is there any code in c# that allow me to programically refresh the windows
desktop?


Many thanks in advance.
 
M

Mattias Sjögren

Is there any code in c# that allow me to programically refresh the windows
desktop?

Check out the IActiveDesktop COM interface and its ApplyChanges
method.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top