C# .NET - how can i show my winform from a windows service?

Asked By rashid av on 25-Jan-05 04:30 AM
Hi all,
          I want to show my winform from a windows service. i tried the Process.Start() method to run the exe. but its not visible to me. but in side the process its active.  suppose if i want to open notepad.exe i tried Process.Start("Notepad.exe"). but its not visible in the sceen at all. but i can see one istance of notepad.exe in the process. any body knows any solution please share with me.
thanks
Rashid

Not recommended to do this

Asked By Dexter Dotnetsky on 25-Jan-05 09:32 AM
since the service has a virtual desktop that is not visible (in fact, your form could show on a machine that nobody is even logged into, and if it has any dialogs, there would be nobody there to click the OK button).
However, if you have a specific case where you want to do this, you need to check the "Allow service to interact with desktop" option in Services Manager.

Thanks buddy

Ashish Pandey replied to Dexter Dotnetsky on 06-Nov-09 02:36 AM

Thanks buddy

it helps,

but is there any way we can call the browser complete event of web browser in window application from window service without showing the form.

or can we call this event in windows service,i have searched a lot but could not find anything.


Thanks,

Ashish