Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 03-22-09   #1 (permalink)
Luck : 10pts
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Fl, US
Posts: 12,838
Blog Entries: 3

Rep: 364 Licht is a proven memberLicht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 241
Trader Rating: 0
Default [C#] How to make the task bar button flash?

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.)

System: Uzicht #4.5
CPU
Phenom II X4 920
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
HD4850 + HD3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows 7 Ultimate x86-x64
Monitor
Samsung SyncMaster 19"Wide
Licht is offline Overclocked Account Licht's Gallery   Reply With Quote
Old 03-22-09   #2 (permalink)
Case Modder
 
Spotswood's Avatar
 
Join Date: Jul 2008
Location: New Hampshire, USA
Posts: 236

Rep: 46 Spotswood is acknowledged by some
Unique Rep: 39
Trader Rating: 0
Default

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
Overclock.net Mod of the Month

Last edited by Spotswood : 03-22-09 at 10:27 PM
Spotswood is offline   Reply With Quote
Old 03-22-09   #3 (permalink)
AMD Overclocker
 
decompiled's Avatar
 
amd nvidia

Join Date: Feb 2006
Location: Redsox Nation
Posts: 705

Rep: 78 decompiled is acknowledged by some
Unique Rep: 68
Hardware Reviews: 9
Trader Rating: 0
Default

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)
        {

        }
    }
}
__________________
System: Slow Poke
CPU
AMD X2 4400
Motherboard
MSI K8N Diamond +
Memory
3gb TCC5
Graphics Card
eVGA 7900GS
Hard Drive
74gb Raptor + Raid 1 640's
Sound Card
Audigy SE
Power Supply
OCZ 600 ModXstream
Case
Antec 1200
CPU cooling
Stock AMD
GPU cooling
Stock eVGA
OS
Windows 7 FTW Edition
Monitor
Dell 1905FP

Last edited by decompiled : 03-22-09 at 11:16 PM Reason: Makes me happy!
decompiled is offline   Reply With Quote
Old 03-23-09   #4 (permalink)
WaterCooler
 
intel ati

Join Date: Sep 2008
Posts: 1,830

Rep: 119 Kuntz is acknowledged by manyKuntz is acknowledged by many
Unique Rep: 91
Trader Rating: 0
Default

http://msdn.microsoft.com/en-ca/libr...47(VS.85).aspx
__________________
System: Watercooler
CPU
i7 920 D0 @ 4400MHz [24/7]
Motherboard
X58 Classified
Memory
Dominator GT 1680 [6-6-5-16]
Graphics Card
3870 Toxic
Hard Drive
7200.12 - 500GB [RAID 1]
Sound Card
X-Fi Titanium Fatal1ty
Power Supply
Corsair HX850W
Case
Silverstone TJ07
CPU cooling
Koolance CPU-350
OS
Windows 7
Monitor
Samsung 2343BWX 2048x1152
Kuntz is offline   Reply With Quote
Old 03-23-09   #5 (permalink)
News Fiend
 
kyotejones's Avatar
 
intel nvidia

Join Date: Mar 2007
Posts: 222

Rep: 32 kyotejones is acknowledged by some
Unique Rep: 29
Trader Rating: 0
Default

Not sure that this is what you want but you can try using a notification icon.
http://www.codeproject.com/KB/dotnet...control20.aspx
__________________
System: SCUD
CPU
Pentium C2D 2.4GHz
Motherboard
ASUS P5N32-E SLI
Memory
2x1Gb Balistix
Graphics Card
GeForce 7950 GT
Sound Card
SupremeFX (ADI 1988b)
Power Supply
ENERMAX Liberty 620W
Case
RAIDMAX SMILODON ATX
CPU cooling
ARCTIC COOLING Freezer 7
GPU cooling
Passive Heat Sink + CPU Fan
OS
Win XP Pro
Monitor
2x20" Samsung SyncMaster
kyotejones is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 02:06 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12886 seconds with 8 queries