Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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
  • *Experts*
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...