refresh taskbar

This project (2018-1-SE01-KA201-039098) has been funded with support from the European Commission.
This web site reflects the views only of the author, and the Commission cannot be held responsible for any use which may be made of the information contained therein.

refresh taskbar

This project has been funded with support from the European Commission.
This web site reflects the views only of the author, and the Commission cannot be held responsible for any use which may be made of the information contained therein.

Select language   >   IT SE EN

Taskbar | Refresh

private static void RestartShellComponents() { // Use Windows API to restart the shell try { // Start a new explorer instance (which will recreate the taskbar) Process.Start("explorer.exe"); } catch { } }

private const uint WM_CLOSE = 0x0010;

using System; using System.Diagnostics; using System.Runtime.InteropServices; public class TaskbarRefresher { // Find and kill the taskbar window [DllImport("user32.dll", SetLastError = true)] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); refresh taskbar