How to open new process and make it visible?

  • Thread starter Thread starter Evgeny
  • Start date Start date
E

Evgeny

Hi, all!
My main process is apsnet_wp.exe.
I try to open the new process from one of my application dlls running in
this process as follow:

string fileName = "c:\\myTestFile.txt";
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = fileName;
process.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Maximized;
process.StartInfo.RedirectStandardOutput = false;
pr.StartInfo.CreateNoWindow;
process.Start();

I only can see the notepad.exe in runnig processes, but it is no user
interface.

The same code does work fine, if the main process is not the apsnet_wp.exe,
but simple test winform application!

Where is my fault?

Thanks in advance
Evgeny
 
Back
Top