locked
UpdateProgress ? RRS feed

  • Question

  • User622205320 posted

    If I use ado.net  access large db, the UpdateProgress work find and good, but if I do Process.Start like

    Process p = new Process();
    p.StartInfo.FileName = "cmd.exe";
    string strCmdText = " /C dir c:\\windows /s";
    p.StartInfo.Arguments = strCmdText;
    p.StartInfo.CreateNoWindow = true;
    p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    p.EnableRaisingEvents = true;
    p.Start();

    the UpdateProgress will not show anything ! What Can I do ?

    Tuesday, October 29, 2013 6:49 AM

Answers

  • User-1392847221 posted

    Hi,

    You need to write p.waitforExit();

     

    I think this may help you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 29, 2013 9:43 AM