jspeirer Posted October 29, 2003 Posted October 29, 2003 Here's the problem. I have a long running C# console program that in turn kicks off a windows program. The windows program queries a log file that is being updated by the console program. I cannot figure out how to have the windows program automatically refresh itself, so that the user can see how the console program is progressing. I'm not sure what event to key the refresh off of. Please help Quote
*Experts* mutant Posted October 29, 2003 *Experts* Posted October 29, 2003 You can use the FileSystemWatcher component to monitor any changes to a file. Then in the Changed event of the component read the file again and display its contants or do whatever you want to do with it. Quote
aewarnick Posted October 29, 2003 Posted October 29, 2003 My mistake, you meant updating the control when the file is edited. Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.