Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i allow only Integer value to be entered Pin
Pedram Behroozi6-Nov-08 0:17
Pedram Behroozi6-Nov-08 0:17 
QuestionFor all you C# geeks: Knock yourselves out [modified] Pin
Bulky Fellow4-Nov-08 8:04
Bulky Fellow4-Nov-08 8:04 
AnswerRe: For all you C# geeks: Knock yourselves out Pin
Guffa4-Nov-08 11:09
Guffa4-Nov-08 11:09 
AnswerRe: For all you C# geeks: Knock yourselves out Pin
Mark Churchill4-Nov-08 13:24
Mark Churchill4-Nov-08 13:24 
QuestionMulti-pass Data Overwrite Questions Pin
BugsSister4-Nov-08 7:59
BugsSister4-Nov-08 7:59 
AnswerRe: Multi-pass Data Overwrite Questions Pin
led mike4-Nov-08 9:36
led mike4-Nov-08 9:36 
GeneralRe: Multi-pass Data Overwrite Questions Pin
BugsSister5-Nov-08 7:33
BugsSister5-Nov-08 7:33 
QuestionGUI for a DOS program 2 questions ??? Pin
Questioneer4-Nov-08 7:33
Questioneer4-Nov-08 7:33 
Hi,

i try to code a GUI for UPX, and in general it will work, but i have still two questions.
First, this is my code for capturing the StandardOutput from UPX in the Console:
private void cmdLesen_Click(object sender, EventArgs e)
{
    ProcessStartInfo start = new ProcessStartInfo();
    start.FileName = "upx.exe";
    start.RedirectStandardError = true;
    start.RedirectStandardOutput = true;
    start.UseShellExecute = false;
    Process prozess = Process.Start(start);
    prozess.WaitForExit();
    string consolenText = prozess.StandardOutput.ReadToEnd();
    string consolenText2 = prozess.StandardError.ReadToEnd();
    rtfBox.Text = consolenText2;
}


1) What i don't know is why the Output with prozess.StandardError.ReadToEnd(); is captured and it is written to consolenText2, and i can show it(the whole console output) in my rtfbox, but when i try it with prozess.StandardError.ReadToEnd(); nothing is in the string consolenText ???!!!

2)I want that the console will *N*O*T* fade away Wink | ;) !
When it is always on top i could better test the input i have to do and the output in the console "UPX".
It's is simpy better for the controlling of my code Wink | ;)


Many many thanks for your help !
... best regards
Questioneer
AnswerRe: GUI for a DOS program 2 questions ??? Pin
Questioneer5-Nov-08 20:18
Questioneer5-Nov-08 20:18 
QuestionHow to highlight first row in the listview control when it is populated? [modified] Pin
phungquang4-Nov-08 6:00
phungquang4-Nov-08 6:00 
AnswerRe: How to highlight first row in the listview control when it is populated? Pin
Pedram Behroozi4-Nov-08 6:17
Pedram Behroozi4-Nov-08 6:17 
GeneralRe: How to highlight first row in the listview control when it is populated? Pin
Ennis Ray Lynch, Jr.4-Nov-08 6:32
Ennis Ray Lynch, Jr.4-Nov-08 6:32 
GeneralRe: How to highlight first row in the listview control when it is populated? Pin
Pedram Behroozi4-Nov-08 6:42
Pedram Behroozi4-Nov-08 6:42 
Questionprevent created file from deleting Pin
KioskKenn4-Nov-08 5:19
KioskKenn4-Nov-08 5:19 
AnswerRe: prevent created file from deleting Pin
Ennis Ray Lynch, Jr.4-Nov-08 5:29
Ennis Ray Lynch, Jr.4-Nov-08 5:29 
GeneralRe: prevent created file from deleting Pin
Meer Osman Ali4-Nov-08 5:44
Meer Osman Ali4-Nov-08 5:44 
GeneralRe: prevent created file from deleting Pin
Ennis Ray Lynch, Jr.4-Nov-08 5:48
Ennis Ray Lynch, Jr.4-Nov-08 5:48 
GeneralRe: prevent created file from deleting Pin
Meer Osman Ali4-Nov-08 5:52
Meer Osman Ali4-Nov-08 5:52 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:07
KioskKenn4-Nov-08 6:07 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:17
KioskKenn4-Nov-08 6:17 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:57
KioskKenn4-Nov-08 6:57 
GeneralRe: prevent created file from deleting Pin
Pete O'Hanlon4-Nov-08 9:23
mvePete O'Hanlon4-Nov-08 9:23 
GeneralRe: prevent created file from deleting Pin
Colin Angus Mackay4-Nov-08 10:03
Colin Angus Mackay4-Nov-08 10:03 
GeneralRe: prevent created file from deleting Pin
jas0n236-Nov-08 17:28
jas0n236-Nov-08 17:28 
QuestionC# Enterprise Projects - Practical examples Pin
mosselman4-Nov-08 5:02
mosselman4-Nov-08 5:02 

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.