Click here to Skip to main content
15,887,302 members
Home / Discussions / C#
   

C#

 
QuestionIs there any objects for Mins and Seconds. Pin
John.L.Ponratnam11-Sep-07 3:34
John.L.Ponratnam11-Sep-07 3:34 
AnswerRe: Is there any objects for Mins and Seconds. Pin
pmarfleet11-Sep-07 3:39
pmarfleet11-Sep-07 3:39 
AnswerRe: Is there any objects for Mins and Seconds. Pin
\laddie11-Sep-07 5:50
\laddie11-Sep-07 5:50 
Questionhow we can control printer tray with csharp? [modified] Pin
mohammadser11-Sep-07 3:31
mohammadser11-Sep-07 3:31 
AnswerRe: how we can control printer tray with csharp? Pin
martin_hughes11-Sep-07 10:39
martin_hughes11-Sep-07 10:39 
Questionget only string as input Pin
prasadbuddhika11-Sep-07 2:45
prasadbuddhika11-Sep-07 2:45 
AnswerRe: get only string as input Pin
Christian Graus11-Sep-07 2:46
protectorChristian Graus11-Sep-07 2:46 
QuestionProcess hangs with RedirectStandardOutput Pin
liqnit11-Sep-07 2:39
liqnit11-Sep-07 2:39 
Frown | :( Hi
I am trying to compile a workspace using Msdev.exe (Visual Studio 6) .
I am using the command line and want to redirect the output into a rich textbox on my form.
When an error in compilation occur the process is hanged until i stop my application and only then the Msdev is showing the error.

 System.IntPtr  PrHndle;<br />
 Process Prc = new Process();<br />
 <br />
 Prc.StartInfo.FileName = VS6EXEPath;<br />
 Prc.StartInfo.Arguments = WorkSpace + CompileCommandString;<br />
 Prc.StartInfo.UseShellExecute = false;<br />
 Prc.StartInfo.RedirectStandardOutput=true;<br />
 <br />
 Prc.Start();<br />
 PrHndle = Prc.Handle;<br />
 <br />
 StreamReader SR = Prc.StandardOutput;<br />
<br />
 while (SR.EndOfStream != true)<br />
 {<br />
     rtbCmdOutput.Text = rtbCmdOutput.Text + "\r\n" + SR.ReadLine();<br />
 }<br />
 Prc.WaitForExit();

Same code works good with appliaction.
Please helpFrown | :(



Have a nice Day

AnswerRe: Process hangs with RedirectStandardOutput Pin
Judah Gabriel Himango11-Sep-07 5:12
sponsorJudah Gabriel Himango11-Sep-07 5:12 
GeneralRe: Process hangs with RedirectStandardOutput Pin
liqnit11-Sep-07 18:21
liqnit11-Sep-07 18:21 
QuestionChecked change event Pin
M. J. Jaya Chitra11-Sep-07 2:31
M. J. Jaya Chitra11-Sep-07 2:31 
AnswerRe: Checked change event Pin
Christian Graus11-Sep-07 2:45
protectorChristian Graus11-Sep-07 2:45 
GeneralRe: Checked change event Pin
M. J. Jaya Chitra11-Sep-07 2:57
M. J. Jaya Chitra11-Sep-07 2:57 
GeneralRe: Checked change event Pin
Ermak8611-Sep-07 4:04
Ermak8611-Sep-07 4:04 
GeneralRe: Checked change event Pin
Mairaaj Khan11-Sep-07 12:06
professionalMairaaj Khan11-Sep-07 12:06 
QuestionRegular expression inside a textbox Pin
segusmitha11-Sep-07 2:30
segusmitha11-Sep-07 2:30 
AnswerRe: Regular expression inside a textbox Pin
snorkie11-Sep-07 4:36
professionalsnorkie11-Sep-07 4:36 
GeneralRe: Regular expression inside a textbox Pin
segusmitha11-Sep-07 18:33
segusmitha11-Sep-07 18:33 
QuestionHiding main form upon load Pin
Justin Perez11-Sep-07 2:24
Justin Perez11-Sep-07 2:24 
AnswerRe: Hiding main form upon load Pin
Giorgi Dalakishvili11-Sep-07 2:39
mentorGiorgi Dalakishvili11-Sep-07 2:39 
GeneralRe: Hiding main form upon load Pin
Justin Perez11-Sep-07 2:53
Justin Perez11-Sep-07 2:53 
GeneralRe: Hiding main form upon load Pin
Giorgi Dalakishvili11-Sep-07 2:58
mentorGiorgi Dalakishvili11-Sep-07 2:58 
GeneralRe: Hiding main form upon load Pin
Justin Perez11-Sep-07 3:02
Justin Perez11-Sep-07 3:02 
GeneralRe: Hiding main form upon load Pin
Ermak8611-Sep-07 3:04
Ermak8611-Sep-07 3:04 
GeneralRe: Hiding main form upon load Pin
Giorgi Dalakishvili11-Sep-07 3:05
mentorGiorgi Dalakishvili11-Sep-07 3:05 

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.