to run an exe file in the panel of c#.net application

后端 未结 4 686
情歌与酒
情歌与酒 2020-12-20 07:59
  1. I want to run an exe file on my winform .net application within the panel using c# code
  2. I\'m able to run exe file on the button click with System.Diagno
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 08:33

    What you want is pipe the output of the exe to your process. Usually when you do not do not pipe the output it defaults to stdout for a console application will be the console window by piping you are telling the exe you want the output to come to your process not the console window. Then you would have to create your own "panel" (a multiline textbox) and append the the output stream from the exe you invoked to it!

    Learn here: http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput(v=VS.90).aspx

提交回复
热议问题