Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make application blinking on the windows status bar 5

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US
How can I make my aplication on the windows status bar (which is usually on the bottom) to blink.
The best exemple is MSN Messenger which blinks when new message arrives.

I want to get user attention if application is minimized, and if some major process (in my app.) is finished.

Hope somebody can help me...

Thanks in advance.
 
See the FlashWindow API.
___

[tt]Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Private Sub Command1_Click()
FlashWindow hwnd, 1
End Sub[/tt]
___

You can call the FlashWindow function repeatedly using a timer to flash the window more than once.
Here are the details;

You can also use the FlashWindowEx function which performs the same task with better options.
 
ok, Guess I didn't express myself very well. Sorry for that.

If use FlashWindow my aplication window blinks, but I realy want my application to blink on the windows task bar.
Right from the button START, where minimized applications are shown. How can I do that.

Thanks
 

Do you mean something like...
[tt]
Option Explicit

Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then
Timer1.Interval = 250
Else
Timer1.Interval = 0
End If
End Sub

Private Sub Timer1_Timer()
FlashWindow hwnd, 1
End Sub
[/tt]

Good Luck

 
thanks vb5prgrmr, i've learned something from you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top