Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Restrict a file to be open Pin
Richard MacCutchan26-Oct-10 0:47
mveRichard MacCutchan26-Oct-10 0:47 
AnswerRe: Restrict a file to be open Pin
OriginalGriff26-Oct-10 0:53
mveOriginalGriff26-Oct-10 0:53 
AnswerRe: Restrict a file to be open Pin
Pete O'Hanlon26-Oct-10 0:56
mvePete O'Hanlon26-Oct-10 0:56 
AnswerRe: Restrict a file to be open Pin
#realJSOP26-Oct-10 1:32
mve#realJSOP26-Oct-10 1:32 
GeneralRe: Restrict a file to be open Pin
Mirko198026-Oct-10 3:12
Mirko198026-Oct-10 3:12 
Questionproblem with purecomponents Pin
f_aliani25-Oct-10 23:24
f_aliani25-Oct-10 23:24 
AnswerRe: problem with purecomponents Pin
OriginalGriff25-Oct-10 23:37
mveOriginalGriff25-Oct-10 23:37 
QuestionVSTO outlook stopping fire events while running...? Pin
leeoze25-Oct-10 23:04
leeoze25-Oct-10 23:04 
AnswerRe: VSTO outlook stopping fire events while running...? Pin
_Erik_26-Oct-10 1:51
_Erik_26-Oct-10 1:51 
GeneralNo knews there... still no answer Pin
leeoze26-Oct-10 3:27
leeoze26-Oct-10 3:27 
GeneralRe: No knews there... still no answer [modified] Pin
_Erik_26-Oct-10 4:21
_Erik_26-Oct-10 4:21 
GeneralRe: No knews there... still no answer Pin
_Erik_26-Oct-10 5:22
_Erik_26-Oct-10 5:22 
GeneralRe: Amazing, tnx it's working :) Pin
leeoze26-Oct-10 7:22
leeoze26-Oct-10 7:22 
Questionhow to Preventing double submit in ASP Pin
Sasmi_Office25-Oct-10 22:27
Sasmi_Office25-Oct-10 22:27 

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.