I have a program that hides both the window, and the taskbar icon. When the program starts, it displays either the tray icon, or the window. This works fine, however if the program is already running it just starts a new instance. i am going to set the program to only have one instance. this is my issue. when i run the exe for the 2nd time, while the application is already running, i want it to run certain code, where do i write this code. the part that detects weather to run either the window or the tray icon is in the load code. but this code wont run when i open the exe for the second time, will it? i assume it will just bring the app to focus. is there code that i can write that will work when the app takes focus?
thanks
2006-11-29
11:43:22
·
1 answers
·
asked by
Jamie J
3