Solved

how to make blinking minimized form in title bar vb.net

Posted on 2004-04-07
9
1,857 Views
Last Modified: 2007-12-19
I am working on a chat room system one a user minimizes a chat down to the task bar I want to notify them by sound (i have this) and blinking of the title in the taskbar.  How do i Mka eit blink and then stop

thanks
\scott
0
Comment
Question by:ocsscott
  • 5
  • 4
9 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 10777262
Put a timer and blink for certain time and then stop
0
 

Author Comment

by:ocsscott
ID: 10777458
how do i set the titlebar to blink?
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 10777640
Not the titlebar, but either icon or the minimized form header
0
 

Author Comment

by:ocsscott
ID: 10777699
yes the minimized form header, how do i make that blink?

what is the code for that
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 28

Expert Comment

by:iboutchkine
ID: 10777836
for example
toggle the icon in the form caption. Or toggle the text
0
 

Author Comment

by:ocsscott
ID: 10778077
will toggleing the text make the button blink?

in yahoo a minimized chat will make the title bar highlight and go normal thus blinking is this the same?  if so how to code such a thing?
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 50 total points
ID: 10778413
It will definetely attract  hte attention

If you want to change picture ( like blinking light)

Put it in the timer event

Static iImage As Integer

iImage = iImage + 1
If iImage > 2 Then iImage = 1
Me.Icon = ImageList1.ListImages(iImage).Picture

Caption change
Static iImage As Integer

iImage = iImage + 1
If iImage > 2 Then iImage = 1

select case image
   Case 1
       Me.text = "bla"
   Case 2
       Me.text = "bla- bla-bla"
end select

That is my old piece of code in VB6 - it must be the same or very close in VB.NET
0
 

Author Comment

by:ocsscott
ID: 10779446
i think this vb6 code is exactly what I want...

do any of you know what this code would look like in vb.net?

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


Private Sub Timer1_Timer()
    FlashWindow Form1.hwnd, True
End Sub
0
 

Author Comment

by:ocsscott
ID: 10779763
never mind I got this api figured out and it is exactly what I wanted.

thanks for all your help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now