How to show a form from windows service?
-
can anyone explain me that how to show a form from windows service. i search google but found no solution. please explain anyone. Thanks in advance
tbhattacharjee
-
can anyone explain me that how to show a form from windows service. i search google but found no solution. please explain anyone. Thanks in advance
tbhattacharjee
The Question is how do you Display a Form ?
Form1 frm1 = new Form1();
frm1.Show();
i have not been doing win apps for a while now , but that is how its done. My point is that need to create that form first and show it later.
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
can anyone explain me that how to show a form from windows service. i search google but found no solution. please explain anyone. Thanks in advance
tbhattacharjee
Tridip Bhattacharjee wrote:
How to show a form from windows service?
Windows services don't interact with the user using UI.In fact they are "background" processes and it's not not safe to control the UI outside of the default drawing pool.If you need to control the service programatically define your own custom commands and send them to the service using
ServiceController.ExecuteCommand
method.See this sample.And if you need to report for some errors use the event log.Life is a stage and we are all actors!
-
can anyone explain me that how to show a form from windows service. i search google but found no solution. please explain anyone. Thanks in advance
tbhattacharjee