|
-
Jul 9th, 2009, 06:06 AM
#2
Hyperactive Member
Re: How to run a process and get its output continously?
The way I see your code working atm is, the console only updates the textbox whenever the button is clicked.
What you could do I suppose is create a service that will continuouly watch for changes on mailbox and as soon as there is a change on mailbox, it will run the console app and then update the textbox within the form for the service.
The processes within the service will need to run in threads though and if you want the application to queue the events and process them as them come along, then use a threadpool to process it.
Regards,
Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered 
If someone helped you today then please consider rating their post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|