How to I parse live cmd output and display in a textbox. Example
wkhtmltopdf http://www.google.com output.pdf 
gives the below in cmd
Loading pages (1/6)
[>                                                           ] 0%
[======>                                                     ] 10%
[=============>                                              ] 23%
[==================>                                         ] 30%
[==============================>                             ] 51%
[=================================>                          ] 56%
[==================================>                         ] 58%
[========================================>                   ] 68%
[===============================================>            ] 79%
[================================================>           ] 81%
[==================================================>         ] 84%
[============================================================] 100%
Counting pages (2/6)                                               
[============================================================] Object 1 of 1
Resolving links (4/6)                                                       
[============================================================] Object 1 of 1
Loading headers and footers (5/6)                                           
Printing pages (6/6)
[>                                                           ] Preparing
[============================================================] Page 1 of 1
Done                                                                      
I want to parse the above and display in the step ( loading , counting ....) in one textbox and the progress in % ,using numbers in () , in another textbox and number of pages in another.
I tried to modify the answer from this How to parse command line output from c#? for my needs but it couldn't succeed. Then I read somewhere I need to use BackgroundWorker and tried to modify and use code from http://www.codeproject.com/Articles/99143/BackgroundWorker-Class-Sample-for-Beginners but failed.
 
     
    