You will have to make calls to the Win32 API to do this. However, it
should be simple. 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.
public class Win32API
{
[System.Runtime.InteropServices.DllImport("user32.dll")]
public extern static IntPtr GetDesktopWindow();
[System.Runtime.InteropServices.DllImport("user32.dll")]
public extern static bool UpdateWindow(IntPtr wnd);
public static void UpdateDesktop()
{
UpdateWindow(GetDesktopWindow());
}
}
and call Win32API.UpdateDesktop( )
-vJ
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.