Declare this class somewhere
public class Win32API
{
[System.Runtime.InteropServices.DllImport("user32.d ll")]
public extern static IntPtr GetDesktopWindow();
[System.Runtime.InteropServices.DllImport("user32.d ll")]
public extern static bool UpdateWindow(IntPtr wnd);
public static void UpdateDesktop()
{
UpdateWindow(GetDesktopWindow());
}
}
and call Win32API.UpdateDesktop( )
-vJ
"Duncan Winn" <te**@test1.co.uk> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
Thanks....
You will have to make calls to the Win32 API to do this.
.... but I have no idea how to do this or where to start, any
pointers???? Basically, you will get the handle to the desktop window
with GetDesktopWindow. Once you have that, you pass that to the
InvalidateRgn API function, to tell the desktop to repaint itself, or a
section of itself.