Elfoc
Elfoc

Reputation: 3689

Blinking or glowing button in C#

I'm wondering how to create blinking or glowing "Alarm!" button/image.. For image -> one normal jpg, and one gif? Any easier solutions?

Upvotes: 1

Views: 5398

Answers (2)

Sujay Ghosh
Sujay Ghosh

Reputation: 2868

You might this useful - http://www.codeproject.com/KB/buttons/VistaButton.aspx

Easy way is to create two image files , one with the glow, another without it . When the app receives the alarm change the button image .

Upvotes: 1

Cody Gray
Cody Gray

Reputation: 244843

The buttons in Windows Vista and Windows 7 already glow and throb by default when the user mouses over them, and/or when one is set as the default button for a form. The effect looks like this:

     Sample button

If you're not getting this effect already, make sure that the FlatStyleproperty of your button control is set to "System".

Upvotes: 1

Related Questions