|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
[C#] How to make the task bar button flash?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Luck : 10pts
![]() |
Anyone want to contribute to my fund of code here?
How do i make a task bar button flash orange? It's supposed to get the user's attention. Can't find a way through the typical hordes of commands in .Net (3.5.)
__________________
|
|||||||||||||
|
|
|
|
#2 (permalink) |
|
Case Modder
![]() |
The windows API for that is FlashWindow, although I'm not sure if its baked-into .NET. However, you could always call it via pinvoke.
Edit: This looks like a good howto.
__________________
Rich Custom Wooden Case Builder
Last edited by Spotswood : 03-22-09 at 10:27 PM |
|
|
|
|
|
#3 (permalink) | |||||||||||||
|
AMD Overclocker
![]() |
WinForm
__________________Code:
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private bool change = true;
private void timer1_Tick(object sender, EventArgs e)
{
if (change == true)
button1.ForeColor = System.Drawing.Color.Black;
else
button1.ForeColor = System.Drawing.Color.Orange;
change = !change;
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
Last edited by decompiled : 03-22-09 at 11:16 PM Reason: Makes me happy! |
|||||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||||||
|
WaterCooler
![]() |
__________________
|
||||||||||||
|
|
|
|
|
#5 (permalink) | ||||||||||||
|
News Fiend
![]() |
Not sure that this is what you want but you can try using a notification icon.
__________________http://www.codeproject.com/KB/dotnet...control20.aspx
|
||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|