Changing icons on the fly
You can also change icons while a program is running. I have an alarm monitoring program which runs minimized on the taskbar and it changes icons with the alarm state. to do this the app has 4 additional forms to the main one. Three of these forms have different a icon for different alarms and the fourth has a duplicate of the main form. To change icons you can use "mainform.icon = form1.icon" etc and to restore the original use "mainform.icon = form4.icon". The text on the task bar also changes by using "mainform.caption = textstring"