G
Guest
Hello,
I'd like to run an application from a windows service.
I followed the instructions on the MS site to create a service but when it
starts Notepad - notepad window is not visible but process is there.
What could be the problem
My service has this code:
Process myProcess = new Process();
myProcess.StartInfo.CreateNoWindow = false;
myProcess.StartInfo.FileName = "notepad.exe";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
myProcess.Start();
Thanks
Evgueni
I'd like to run an application from a windows service.
I followed the instructions on the MS site to create a service but when it
starts Notepad - notepad window is not visible but process is there.
What could be the problem
My service has this code:
Process myProcess = new Process();
myProcess.StartInfo.CreateNoWindow = false;
myProcess.StartInfo.FileName = "notepad.exe";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
myProcess.Start();
Thanks
Evgueni