Click here to Skip to main content
15,909,466 members
Home / Discussions / C#
   

C#

 
QuestionQueryContinueDrag problem Pin
e-laj30-Sep-06 11:21
e-laj30-Sep-06 11:21 
GeneralWall Street Programming Pin
Andrey Butov30-Sep-06 10:55
Andrey Butov30-Sep-06 10:55 
Questiondata from dataset to array Pin
Amar Chaudhary30-Sep-06 8:26
Amar Chaudhary30-Sep-06 8:26 
AnswerRe: data from dataset to array Pin
Amar Chaudhary30-Sep-06 8:32
Amar Chaudhary30-Sep-06 8:32 
AnswerI found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:11
Amar Chaudhary30-Sep-06 10:11 
GeneralRe: I found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:15
Amar Chaudhary30-Sep-06 10:15 
QuestionI have a strange with my computers. I chose C# because that is what I mostly do! Pin
Just me at will_george...something30-Sep-06 7:08
Just me at will_george...something30-Sep-06 7:08 
Questionredirecting output from an unmanaged console application Pin
erikash30-Sep-06 5:25
erikash30-Sep-06 5:25 
Hi guys, i'm executing a console application using :
<br />
Process prsAlgorithm = new Process();<br />
<br />
            prsAlgorithm.StartInfo.WindowStyle = ProcessWindowStyle.Normal;<br />
            prsAlgorithm.StartInfo.FileName = "Lottery.exe";<br />
            prsAlgorithm.StartInfo.UseShellExecute = false;<br />
            prsAlgorithm.StartInfo.RedirectStandardInput = true;<br />
            prsAlgorithm.StartInfo.RedirectStandardOutput = true;<br />
<br />
            prsAlgorithm.Start();<br />
<br />
            System.IO.StreamWriter swWriter = prsAlgorithm.StandardInput;<br />
<br />
            System.IO.StreamReader srReader = prsAlgorithm.StandardOutput;<br />
<br />
            swWriter.WriteLine(m_strArgList);<br />
<br />
            swWriter.Close();<br />
<br />
            <br />
            // Some thing goes here<br />
            <br />
            prsAlgorithm.WaitForExit();<br />


i need to redirect the output of this console application to a textbox on a window form,
but the problem is that i want that every line written in the console application, would be automaticaly written to the textbox (and not wait until the console application has exited)...

i'm pretty sure it has something to do with asynchronousy reading a stream or something like that...?

any suggestions?

Thanks in advance,
Erik.
AnswerRe: redirecting output from an unmanaged console application Pin
umseker30-Sep-06 9:43
umseker30-Sep-06 9:43 
AnswerRe: redirecting output from an unmanaged console application Pin
S. Senthil Kumar1-Oct-06 9:41
S. Senthil Kumar1-Oct-06 9:41 
QuestionFormatting a single datagridview cell??? Pin
printscreen1234530-Sep-06 4:40
printscreen1234530-Sep-06 4:40 
AnswerRe: Formatting a single datagridview cell??? Pin
LongRange.Shooter3-Oct-06 8:22
LongRange.Shooter3-Oct-06 8:22 
Questionwhat we write Pin
Parshant Verma30-Sep-06 4:28
Parshant Verma30-Sep-06 4:28 
AnswerRe: what we write Pin
Guffa30-Sep-06 6:33
Guffa30-Sep-06 6:33 
AnswerRe: what we write Pin
Just me at will_george...something30-Sep-06 7:17
Just me at will_george...something30-Sep-06 7:17 
AnswerRe: what we write Pin
Judah Gabriel Himango30-Sep-06 16:53
sponsorJudah Gabriel Himango30-Sep-06 16:53 
Questionctrl+c and ctrl+v not working in TextBox Pin
rajmohan8330-Sep-06 1:38
rajmohan8330-Sep-06 1:38 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
zhengdong jin30-Sep-06 7:11
zhengdong jin30-Sep-06 7:11 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
pratap bhargava25-Jun-10 18:07
pratap bhargava25-Jun-10 18:07 
QuestionClass inheritance Pin
you3030-Sep-06 0:47
you3030-Sep-06 0:47 
AnswerRe: Class inheritance Pin
Guffa30-Sep-06 3:49
Guffa30-Sep-06 3:49 
Questionchat application Pin
rcwoods29-Sep-06 23:57
rcwoods29-Sep-06 23:57 
AnswerRe: chat application Pin
umseker30-Sep-06 4:23
umseker30-Sep-06 4:23 
Questioncreating insert statement using arrays Pin
DownBySpj29-Sep-06 23:21
DownBySpj29-Sep-06 23:21 
AnswerRe: creating insert statement using arrays Pin
Guffa29-Sep-06 23:33
Guffa29-Sep-06 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.