I am using a ToolStrip
with a number of ToolStripButton
s.
What I would like is to be able to flash one of the buttons to get the user's attention.
For example, if they have made changes to information and need to click the Save button.
If this were a normal button I could do this using a Timer
and periodically changing the BackColor
however this doesn't work with a ToolStrip
.
I could create a Renderer subclass and assign it to the ToolStrip
but this appears to only get used in specific situations - i.e. it's event driven.
Does anyone have any ideas?
Well, just use a custom renderer so you can change the color of the button's background. With a timer that blinks it. Add a new class to your project and paste this code:
Sample usage in a form with a Toolstrip containing a button: