locked
How to call window form from windows servcie in .net RRS feed

  • Question

  • Hi

       I created a windows Service and i did following steps.

    >>protected override void OnStart(string[] args)

    {

    // TODO: Add code here to start your service.

     

    System.Windows.Application.Run();

    Form1 frm = new Form1();

    frm.Show();

    }

     

    I add the service installer and to start service i opened a command prompt then i typed installutil path/serviceproj.exe.

    And i started the service from Mycomputer->Manage.

    But windows service is not showing the form.Everyone is telling windows service not support UI.Its a background thing. So Form is not showing

    My question is how to show a window form or how to relate window service with UI

    thanks

    Jhanani.R

    Monday, September 24, 2007 6:53 AM

Answers