Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Is there any way to display a DialogBox (Form) to the desktop from a windows service?

Thanks in advance :-)

Share this answer
Silju MC 18-Oct-11 7:22am    
Nice link. Thank you. 5+ cheers:-)
Silju MC 18-Oct-11 7:22am    
I'm accepting your answer...
Silju MC 18-Oct-11 7:25am    
Hello... 1 min :-) can we take a screenshot of the desktop from a service?
OriginalGriff 18-Oct-11 7:32am    
In the same way that you have to use a separate app for message boxes, you need to do the same for desktop access as well.
Silju MC 18-Oct-11 7:42am    
Thank you :-)
Not reliably.

The normal solution is to write a windows app that communicates with the service using WCF.
Share this answer
Silju MC 18-Oct-11 7:18am    
OK. Thanks you :-) Service and the user interface are two different thing. right?
Nicholas Butler 18-Oct-11 7:23am    
Yes, they have to be, because the service can be running when no-one is logged on ( and therefore there is no desktop )
Silju MC 18-Oct-11 7:42am    
Thanks a lot :-)
Nicholas Butler 18-Oct-11 7:49am    
you're welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900