FindWindow... Looping help
Im new to c# and managed to get findwindow working so that it detects if a window with a giving name is open or not but my problem is it only checks once and thats right when the program is started. How would I go about calling the check every X amount of seconds?
Thanks in advance for your help
Mike GoldPosted Jun 25, 2006, 4:59 PM
You probably need to call FindWindow in a timer event. Set the timer interval for x milliseconds.
1) Drag the Windows timer onto the form
2) Set the timer interval in the properties window
2) Start the timer in the OnLoad event of the form
3) handle the timer event in a event_handler and call FindWindow inside
-Mike G
Matt LaVoicePosted Jun 25, 2006, 9:04 AM