Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
QuestionDynamic Reference With Inheritence Pin
Adam R Harris26-Oct-10 6:07
Adam R Harris26-Oct-10 6:07 
AnswerRe: Dynamic Reference With Inheritence Pin
Ennis Ray Lynch, Jr.26-Oct-10 7:39
Ennis Ray Lynch, Jr.26-Oct-10 7:39 
GeneralRe: Dynamic Reference With Inheritence Pin
Adam R Harris26-Oct-10 7:51
Adam R Harris26-Oct-10 7:51 
GeneralRe: Dynamic Reference With Inheritence Pin
Ennis Ray Lynch, Jr.26-Oct-10 7:59
Ennis Ray Lynch, Jr.26-Oct-10 7:59 
GeneralRe: Dynamic Reference With Inheritence Pin
Adam R Harris26-Oct-10 8:04
Adam R Harris26-Oct-10 8:04 
QuestionLock the PC Pin
Jassim Rahma26-Oct-10 4:22
Jassim Rahma26-Oct-10 4:22 
AnswerRe: Lock the PC Pin
Kevin Marois26-Oct-10 5:47
professionalKevin Marois26-Oct-10 5:47 
AnswerRe: Lock the PC Pin
Ennis Ray Lynch, Jr.26-Oct-10 6:07
Ennis Ray Lynch, Jr.26-Oct-10 6:07 
AnswerRe: Lock the PC Pin
PIEBALDconsult26-Oct-10 15:53
mvePIEBALDconsult26-Oct-10 15:53 
QuestionCOM Object with Protected Methods Pin
Enobong Adahada26-Oct-10 2:42
Enobong Adahada26-Oct-10 2:42 
AnswerRe: COM Object with Protected Methods Pin
Richard MacCutchan26-Oct-10 6:54
mveRichard MacCutchan26-Oct-10 6:54 
GeneralRe: COM Object with Protected Methods Pin
Enobong Adahada26-Oct-10 23:56
Enobong Adahada26-Oct-10 23:56 
GeneralRe: COM Object with Protected Methods Pin
Richard MacCutchan27-Oct-10 2:33
mveRichard MacCutchan27-Oct-10 2:33 
Questionopen form as a tab in windows applications Pin
Zeyad Jalil26-Oct-10 1:39
professionalZeyad Jalil26-Oct-10 1:39 
AnswerRe: open form as a tab in windows applications Pin
OriginalGriff26-Oct-10 1:49
mveOriginalGriff26-Oct-10 1:49 
GeneralRe: open form as a tab in windows applications Pin
Zeyad Jalil26-Oct-10 1:50
professionalZeyad Jalil26-Oct-10 1:50 
GeneralRe: open form as a tab in windows applications Pin
OriginalGriff26-Oct-10 1:56
mveOriginalGriff26-Oct-10 1:56 
GeneralRe: open form as a tab in windows applications Pin
Zeyad Jalil26-Oct-10 2:02
professionalZeyad Jalil26-Oct-10 2:02 
AnswerRe: open form as a tab in windows applications Pin
darkelv26-Oct-10 14:50
darkelv26-Oct-10 14:50 
Questionproblem with process.HasExited "No process is associated with this object error" Pin
prasadbuddhika26-Oct-10 1:20
prasadbuddhika26-Oct-10 1:20 
AnswerRe: problem with process.HasExited "No process is associated with this object error" Pin
Rajesh Anuhya26-Oct-10 1:39
professionalRajesh Anuhya26-Oct-10 1:39 
GeneralRe: problem with process.HasExited "No process is associated with this object error" Pin
prasadbuddhika26-Oct-10 1:48
prasadbuddhika26-Oct-10 1:48 
       bool isRunningFirst = true;

ProcessStartInfo ps = new ProcessStartInfo("telt.exe");
        ps.Arguments = "D:\test.txt";
        ps.WindowStyle = ProcessWindowStyle.Hidden;

        Process prcs = new Process();
        prcs.StartInfo = ps;
        prcs.Start();

        Process prcs2 = new Process();

        if (prcs.HasExited)
        {
            string[] files = Directory.GetFiles(tempFolderpath, "*.txt");

            ProcessStartInfo ps2 = new ProcessStartInfo("telt.exe");
            ps2.Arguments = files[0] ;
            ps2.WindowStyle = ProcessWindowStyle.Hidden;
            prcs2.StartInfo = ps2 ;
            prcs2.Start();
        }


        while (isRunningFirst)
        {
            if (prcs.HasExited && prcs2.HasExited)
            {
                isRunningFirst = false;
                fill_datagrid();
            }
        }


please ignore the "telt.exe" just a small tool. here in the while i get the exception only for the prcs2.HasExited
AnswerRe: problem with process.HasExited "No process is associated with this object error" Pin
Luc Pattyn26-Oct-10 2:13
sitebuilderLuc Pattyn26-Oct-10 2:13 
GeneralRe: problem with process.HasExited "No process is associated with this object error" Pin
Rajesh Anuhya26-Oct-10 2:37
professionalRajesh Anuhya26-Oct-10 2:37 
QuestionRestrict a file to be open Pin
jojoba201126-Oct-10 0:29
jojoba201126-Oct-10 0:29 

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.