Click here to Skip to main content
16,015,658 members
Home / Discussions / C#
   

C#

 
QuestionControl won't update Pin
MAW306-Sep-12 16:48
MAW306-Sep-12 16:48 
AnswerRe: Control won't update Pin
Dr.Walt Fair, PE6-Sep-12 17:13
professionalDr.Walt Fair, PE6-Sep-12 17:13 
GeneralRe: Control won't update Pin
MAW306-Sep-12 17:47
MAW306-Sep-12 17:47 
GeneralRe: Control won't update Pin
Dr.Walt Fair, PE6-Sep-12 17:57
professionalDr.Walt Fair, PE6-Sep-12 17:57 
GeneralRe: Control won't update Pin
MAW306-Sep-12 18:11
MAW306-Sep-12 18:11 
AnswerRe: Control won't update Pin
Eddy Vluggen6-Sep-12 18:24
professionalEddy Vluggen6-Sep-12 18:24 
GeneralRe: Control won't update Pin
MAW306-Sep-12 18:44
MAW306-Sep-12 18:44 
QuestionC# process code Pin
sc steinhayse6-Sep-12 10:19
sc steinhayse6-Sep-12 10:19 
I have questions to ask about the following C# 2008/2010 code listed below:
Process eProcess = new Process();
eDataContext rData = new eDataContext();
            string[] PkgIDs = rData.Trans.Select(c => c.Package_ID ).ToArray();

            foreach (string PkgID in PkgIDs)
            {

                eProcess.StartInfo.FileName = "app1.exe";
                eProcess.StartInfo.Arguments = "10 " + " 5" + PkgID;
                eProcess.Start();
                eProcess.WaitForExit();
                eProcess.Close();
             }
WTF | :WTF:
My questions are the following:
1. After the
eProcess.WaitForExit();

line of code is finished waiting for the process to finish executing, is there a way to check for the condition code returned from the run. I basically want to see if the job that executed ran successfully.
If so, can you tell me how to setup that code?
2. Do I need the line of code
"eProcess.Close();"

Why or why not?
3. I am basically looping thoough calls executing a process based upon values received in PkgID that is stored in a database table. Is this code good or not? Can you tell me why or why not? If the code is not good, can you tell me a better way to
write the code?
AnswerRe: C# process code Pin
Dave Kreskowiak6-Sep-12 10:52
mveDave Kreskowiak6-Sep-12 10:52 
QuestionHow to open UNC path to C$ without credentials Pin
robwm16-Sep-12 9:15
robwm16-Sep-12 9:15 
AnswerRe: How to open UNC path to C$ without credentials Pin
Eddy Vluggen6-Sep-12 18:25
professionalEddy Vluggen6-Sep-12 18:25 
GeneralRe: How to open UNC path to C$ without credentials Pin
PIEBALDconsult7-Sep-12 4:51
mvePIEBALDconsult7-Sep-12 4:51 
GeneralRe: How to open UNC path to C$ without credentials Pin
robwm17-Sep-12 8:26
robwm17-Sep-12 8:26 
GeneralRe: How to open UNC path to C$ without credentials Pin
robwm112-Sep-12 9:32
robwm112-Sep-12 9:32 
GeneralRe: How to open UNC path to C$ without credentials Pin
PIEBALDconsult12-Sep-12 15:25
mvePIEBALDconsult12-Sep-12 15:25 
QuestionC# config file Pin
classy_dog6-Sep-12 8:26
classy_dog6-Sep-12 8:26 
AnswerRe: C# config file Pin
Expert Coming6-Sep-12 8:39
Expert Coming6-Sep-12 8:39 
AnswerRe: C# config file Pin
jschell6-Sep-12 8:47
jschell6-Sep-12 8:47 
AnswerRe: C# config file Pin
Deepak_Sharma_7-Sep-12 4:06
Deepak_Sharma_7-Sep-12 4:06 
QuestionC# linq Pin
classy_dog6-Sep-12 6:45
classy_dog6-Sep-12 6:45 
AnswerRe: C# linq Pin
Pete O'Hanlon6-Sep-12 7:57
mvePete O'Hanlon6-Sep-12 7:57 
QuestionImprove Project Pin
WebMaster6-Sep-12 6:30
WebMaster6-Sep-12 6:30 
AnswerRe: Improve Project Pin
PIEBALDconsult6-Sep-12 6:56
mvePIEBALDconsult6-Sep-12 6:56 
GeneralRe: Improve Project Pin
WebMaster6-Sep-12 7:06
WebMaster6-Sep-12 7:06 
GeneralRe: Improve Project Pin
PIEBALDconsult6-Sep-12 7:17
mvePIEBALDconsult6-Sep-12 7:17 

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.