|
-
Jun 6th, 2008, 04:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] make your program blink(orange) in taskbar like msn messenger
I'm just creating a chess program and connecting through tcp.
I want to alert the user, in a similar fashion to that of msn messenger when one receives a message. Making the program/conversation window's in the taskbar blink orange.
Anyone know how? thanks
-
Jun 6th, 2008, 05:06 AM
#2
Re: make your program blink(orange) in taskbar like msn messenger
You can add in a FlashWindow API call to accomplish this. There maybe a .Net equivalent, but I'm not aware of one so far:
http://www.vbforums.com/showthread.p...ht=flashwindow
-
Jun 6th, 2008, 05:11 AM
#3
Re: make your program blink(orange) in taskbar like msn messenger
Updated after guesswork failed, this is a tried and tested version of the call in a .Net environment:
Code:
Imports System.Runtime.InteropServices
Public Class Form1
<DllImport("user32.dll", EntryPoint:="FlashWindow")> _
Public Shared Function FlashWindow(ByVal hwnd As Integer, ByVal bInvert As Integer) As Integer
End Function
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
With Timer1
.Interval = 300
.Enabled = True
.Start()
End With
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
FlashWindow(Me.Handle, 1)
End Sub
End Class
Last edited by alex_read; Jun 6th, 2008 at 05:23 AM.
-
Jun 6th, 2008, 05:21 AM
#4
Thread Starter
Addicted Member
Re: make your program blink(orange) in taskbar like msn messenger
-
Jun 6th, 2008, 05:36 AM
#5
Thread Starter
Addicted Member
Re: make your program blink(orange) in taskbar like msn messenger
Hmm i think dllimport is C#. Sorry, i suck with any other languages apart from vb.net, and even with vb.net, im not very good.
-
Jun 6th, 2008, 05:42 AM
#6
-
Jun 6th, 2008, 05:45 AM
#7
Re: make your program blink(orange) in taskbar like msn messenger
Then if you need a beta tester, let me know! Not fantastic at chess at all but I play from time to time. Good luck with your project!
-
Jun 6th, 2008, 05:48 AM
#8
Thread Starter
Addicted Member
Re: make your program blink(orange) in taskbar like msn messenger
lol haha yea! ty alot. almost finished with it, parts of the code may be tedious, but works!
just implied Enpassant, castle and promotion
Im almost finished my exams, only 2 easy ones left. but still kinda need to study for them.
Hope to verse u soon, =)
-
Jun 6th, 2008, 05:51 AM
#9
Re: make your program blink(orange) in taskbar like msn messenger
No problem. Just shout again if you can't get that one above working, or please mark the thread title with the word [Resolved] at the start of it if all's ok and working again.
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
|