|
-
Dec 11th, 2000, 03:08 PM
#1
Thread Starter
Addicted Member
How can you make a program's button in the taskbar blink? (As a warning message)
Normal is boring...
 smh 
-
Dec 11th, 2000, 03:16 PM
#2
Kovan probably beat me to this but....
in mod:
Code:
Public Declare Function FlashWindow _
Lib "user32" (ByVal hwnd As Long, _
ByVal bInvert As Long) As Long
in a timer...(about 500 or so for the interval)
Code:
a& = FlashWindow(Me.hwnd, 1)
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Dec 11th, 2000, 03:27 PM
#3
Thread Starter
Addicted Member
I tried your example, and I am getting the following error:
Compile error:
Wrong number of arguements or invalid property assignment.
Normal is boring...
 smh 
-
Dec 11th, 2000, 03:30 PM
#4
Thread Starter
Addicted Member
Oops
OK, so I can't read (or spell for that matter). My mind is not here today. Sorry....
Normal is boring...
 smh 
-
Dec 11th, 2000, 03:36 PM
#5
Thread Starter
Addicted Member
Ok, so I am not getting any errors now, but how can I change the color of the button to another color, such as red?
Normal is boring...
 smh 
-
Dec 11th, 2000, 03:42 PM
#6
Windows...
I believe that has to do with the windows color settings...
it should be pulling the active titlebar color...I think
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Dec 11th, 2000, 04:09 PM
#7
Thread Starter
Addicted Member
Correct me if I'm wrong, but the smaller the number ... the faster the button should flash, right? I have changed the number from 1 to 25 to 500, and it always seems to flash at the same rate...about once a minute. Any suggestions...I want it to flash faster.
Normal is boring...
 smh 
-
Dec 11th, 2000, 04:10 PM
#8
(Change Public to Private)
Try this:
Code:
Private Declare Function FlashWindow Lib "user32" _
(ByVal hWnd As Long, ByVal bInvert As Long) As Long
'True = Flash
'False = No Flash
Private Sub Timer1_Timer()
FlashWindow Form1.hWnd, True
End Sub
-
Dec 11th, 2000, 04:15 PM
#9
Thread Starter
Addicted Member
Still turns on for a minute, turns off for a minute.
Normal is boring...
 smh 
-
Dec 11th, 2000, 04:16 PM
#10
smh, 1 is the fastest you will get with a timer.
Perhaps, a Do...Loop will satisfy your needs?
Code:
Private Sub Command1_Click()
Do
FlashWindow Form1.hWnd, True
DoEvents
Loop
End Sub
-
Dec 11th, 2000, 04:17 PM
#11
Thread Starter
Addicted Member
Normal is boring...
 smh 
-
Jan 4th, 2001, 04:16 PM
#12
Hyperactive Member
I tried this function. It doesn't work the way I want it to work. This code will make the caption bar of the current form blink.
What I want is the button of the entire application, on Windows' taskbar at the bottom, to flash. How can this be done?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|