Flash in taskbar
-
Hi, I want to make the tab for my program flash in the taskbar, I have done some googling, and found the following code:
using System.Runtime.InteropServices; [DllImport("user32.DLL", EntryPoint = "FlashWindow")] public static extern int FlashWindow(int hwnd, int bInvert);
But unfortunately I have not been able to get it to do anything (calling it has no effect), in fact I don't even know what the int parameters refer to. Can anybody give me a prod in the right direction? Thanks! Martin -
Hi, I want to make the tab for my program flash in the taskbar, I have done some googling, and found the following code:
using System.Runtime.InteropServices; [DllImport("user32.DLL", EntryPoint = "FlashWindow")] public static extern int FlashWindow(int hwnd, int bInvert);
But unfortunately I have not been able to get it to do anything (calling it has no effect), in fact I don't even know what the int parameters refer to. Can anybody give me a prod in the right direction? Thanks! MartinAccording to pinvoke.net the second parameter should be a bool. FlashWindow[^] There's also a FlashWindowEx[^] function which might be more suitable for your needs.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
According to pinvoke.net the second parameter should be a bool. FlashWindow[^] There's also a FlashWindowEx[^] function which might be more suitable for your needs.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook