LZ,
In order to do this, you would have to configure your service to
interact with the desktop. However, this is a VERY BAD IDEA. You can't
always be guaranteed that there is an interactive desktop session for your
application to run in.
Rather, if you want an application with a visual component to run when
the user logs in, then you should place the application in the startup
folder, or a registry entry in the "Run" key to auto-launch the program.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Lamis" <La***@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Hi,
i have just created my first Windows service and it is working great.. my
problem is that I need to start an application in my service:
protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("In OnStart");
this.frm = new Form1();
this.frm.Show();
}
I can't find my form after starting the service!!! why????
--
LZ