Notifier une fenêtre

Résolu
bucherb Messages postés 412 Date d'inscription lundi 26 mai 2003 Statut Membre Dernière intervention 13 août 2007 - 7 févr. 2005 à 12:03
bucherb Messages postés 412 Date d'inscription lundi 26 mai 2003 Statut Membre Dernière intervention 13 août 2007 - 7 févr. 2005 à 14:29
Hello!

Comment fait-on pour notifier une fenêtre, afin que la barre des tâches clignote. (vous voyez comment?)

-------------------------
Trambert le vert

2 réponses

MorpionMx Messages postés 3466 Date d'inscription lundi 16 octobre 2000 Statut Membre Dernière intervention 30 octobre 2008 57
7 févr. 2005 à 13:59
Tu peux utiliser l'API win32





using System;

using System.Runtime.InteropServices;

using System.Windows.Forms;



...



[DllImport("user32.dll", EntryPoint="FlashWindow")]

private static extern int FlashWindow(int hwnd, int bInvert);



public static void FlashWindow(Form f)

{

int hwnd = (int)f.Handle;

FlashWindow(hwnd, 1);

}



a++

Mx
3
bucherb Messages postés 412 Date d'inscription lundi 26 mai 2003 Statut Membre Dernière intervention 13 août 2007
7 févr. 2005 à 14:29
Exactement ce que j'attendais

Slendidement magnifique! Merci!

-------------------------
Trambert le vert
0
Rejoignez-nous