/// <summary> /// Sets the progress bar of this form's taskbar button to the /// specified state. /// </summary> /// <param name="form">The form.</param> /// <param name="state">The taskbar progress state.</param> public static void SetTaskbarProgressState(this Form form, Windows7Taskbar.ThumbnailProgressState state) { Windows7Taskbar.SetProgressState(form.Handle, state); }
/// <summary> /// Sets the progress bar of this Window's taskbar button to the /// specified state. /// </summary> /// <param name="form">The form.</param> /// <param name="state">The taskbar progress state.</param> public static void SetTaskbarProgressState(this Window form, Windows7Taskbar.ThumbnailProgressState state) { Windows7Taskbar.SetProgressState(GetWindowHandle(form), state); }