Make Window Flash 3 Times
-
Hello, I'm using VB.NET and i was just wondering, how can i make a window flash 3 times; when the user clicks on it while the property Enabled is set to false. Any help would be greatly appreciated. Thanks.
-
Hello, I'm using VB.NET and i was just wondering, how can i make a window flash 3 times; when the user clicks on it while the property Enabled is set to false. Any help would be greatly appreciated. Thanks.
u can use the flashWindowEx api function defined in user32.lib enjoy rishabhs
-
u can use the flashWindowEx api function defined in user32.lib enjoy rishabhs
-
Could you please be more specific. I'm not that good with APIs, and I have never done this before. Thanks.
actually its very simple to do just open the api viewer (either thru addin menu in the ide or from program group (tools) then load file win32api.txt in the api viewer (file->open) add declaration for FlashWindow in ur code another alternate way is to search for file WIn32api.txt (in visual studio folder\common tools) and copy decl of the function in ur code now all u have to do is to just call the function FlashWindow anywhere in ur code and see ur window flashing once put the first param as -> and 2'nd param is to specify whether window inverts its state after flasing or not (See MSDN) if u want to flash n times then add FlashWindowEx function along with FLASHWINFO struct in same way as i told u i hope now u can make it work enjoy