Пример #1
0
 public static void SetThumbnailTooltip(IntPtr hWnd, string tooltip)
 {
     if (!isWindowsVistaOrGreater || hWnd != IntPtr.Zero)
     {
         TaskbarList.SetThumbnailTooltip(hWnd, tooltip);
     }
 }
Пример #2
0
        /// <summary>
        /// Sets the specified window's thumbnail tooltip.
        /// </summary>
        /// <param name="hwnd">The window.</param>
        /// <param name="tooltip">The tooltip text.</param>
        private static void SetThumbnailTooltip(this Form form, string tooltip)
        {
            HResult setThumbnailTooltipResult = TaskbarList.SetThumbnailTooltip(form.Handle, tooltip);

            setThumbnailTooltipResult.ThrowIf();
        }