A
Andrew
Windows services opens a win application form.
Hi,
How do I get my Windows service opens form in windows application ?
I have this bit of code :
Service1.cs
===========
using System.Windows.Forms;
protected override void OnStart(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
eventLog1.WriteEntry("Start DONE.");
}
This does not work. When I start my service it just times out.
Any ideas ?
cheers.
Andrew
Hi,
How do I get my Windows service opens form in windows application ?
I have this bit of code :
Service1.cs
===========
using System.Windows.Forms;
protected override void OnStart(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
eventLog1.WriteEntry("Start DONE.");
}
This does not work. When I start my service it just times out.
Any ideas ?
cheers.
Andrew