How to open new process and make it visible?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top