PC Review


Reply
Thread Tools Rate Thread

Process redirectStandardOutput into a textBox?

 
 
Ole
Guest
Posts: n/a
 
      15th Feb 2007
Hi,

Is it possible to bind the output from process to a textBox?

Thanks,
Ole


 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      15th Feb 2007
You could put the output into a property in a class, and bind *that* to a
textbox. That's one idea.

Robin S.
------------------------
"Ole" <(E-Mail Removed)> wrote in message
news:OWdrQ$(E-Mail Removed)...
> Hi,
>
> Is it possible to bind the output from process to a textBox?
>
> Thanks,
> Ole
>



 
Reply With Quote
 
=?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Guest
Posts: n/a
 
      16th Feb 2007
You cant bind a stream to a textbox but there is an event on the Process
object that fires when texts is written to the output stream. You can handle
this event and use textbox.Invoke to update the textbox text. You have to use
invoke as the event fires on a background thread.


--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


"Ole" wrote:

> Hi,
>
> Is it possible to bind the output from process to a textBox?
>
> Thanks,
> Ole
>
>
>

 
Reply With Quote
 
Ole
Guest
Posts: n/a
 
      6th Mar 2007
Thanks,

I've now tried to use the event from the output stream, but it seems like
the process doesn't output anything until it has finished. Under normal
conditions the commandline program outputs some information every 3'rd
second, but as written I only got the event when the command line program
exits??? Is that a normal behaviour from a DOS program?

Thanks,
Ole


"Ciaran O''Donnell" <(E-Mail Removed)> wrote in
message news:FCC92F78-A834-4256-8BBE-(E-Mail Removed)...
> You cant bind a stream to a textbox but there is an event on the Process
> object that fires when texts is written to the output stream. You can
> handle
> this event and use textbox.Invoke to update the textbox text. You have to
> use
> invoke as the event fires on a background thread.
>
>
> --
> Ciaran O''Donnell
> http://wannabedeveloper.spaces.live.com
>
>
> "Ole" wrote:
>
>> Hi,
>>
>> Is it possible to bind the output from process to a textBox?
>>
>> Thanks,
>> Ole
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RedirectStandardOutput & OpenTextFile Conflict ShieldsJared@gmail.com Microsoft C# .NET 2 22nd Feb 2007 03:25 PM
Process.ExitCode returns InvalidOperationException when starting process with RedirectStandardInput = true, RedirectStandardError = true, RedirectStandardOutput = true; SMichal Microsoft Dot NET Framework 0 8th Sep 2006 08:28 AM
Process.RedirectStandardOutput problem Terry Olsen Microsoft VB .NET 1 27th May 2006 10:18 AM
RedirectStandardOutput in CF Tomppa Microsoft Dot NET Compact Framework 0 27th Feb 2006 07:55 PM
RedirectStandardOutput From Console =?Utf-8?B?TW9sZWN1bGFyRnVuaw==?= Microsoft ASP .NET 1 3rd Jun 2004 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:57 PM.