mruganie okna

0

Jak zrobić żeby mrugało okno aplikacji w taskbarze jak np. przychodząca wiadomość na gg?
Pozdrawiam.

0

Dzięki za pomoc!! A tu jeszcze odpowiedz w sam raz dla blondynki :]

Put this in your using section to use COMInterop:
using System.Runtime.InteropServices;

Put this declaration in your class at the function level:

[DllImport("user32.DLL", EntryPoint="FlashWindow")]
public static extern int FlashWindow(int hwnd ,int bInvert );

Put this code in a timer function:

int flash = 0;
private void timer1_Tick(object sender, System.EventArgs e)
{
FlashWindow(Handle.ToInt32(),flash);
flash=flash==0?1:0;
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1