Exemplo n.º 1
0
 /// <summary>
 /// Draws the specified overlay icon over this form's taskbar button.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="icon">The overlay icon.</param>
 /// <param name="description">The overlay icon's description.</param>
 public static void SetTaskbarOverlayIcon(this Form form, Icon icon, string description)
 {
     Windows7Taskbar.SetTaskbarOverlayIcon(form.Handle, icon, description);
 }
Exemplo n.º 2
0
        private void cmbStatus_SelectedIndexChanged(object sender, EventArgs e)
        {
            Icon icon = GetIconByStatus((string)cmbStatus.SelectedItem);

            Windows7Taskbar.SetTaskbarOverlayIcon(Handle, icon, (string)cmbStatus.SelectedItem);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Draws the specified overlay icon over this Window's taskbar button.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="icon">The overlay icon.</param>
 /// <param name="description">The overlay icon's description.</param>
 public static void SetTaskbarOverlayIcon(this Window form, Icon icon, string description)
 {
     Windows7Taskbar.SetTaskbarOverlayIcon(GetWindowHandle(form), icon, description);
 }