UI in a Windows Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eric

    #1

    UI in a Windows Service

    Alright, I have been looking around trying to figure out a way to solve
    my problem and I'm a little confused. I have a Windows Service that
    sits and listens to the serial port for information. Upon receiving
    it, the Service formats the data accordingly and then requires input
    from the user via three forms. I'm confused on how I can/should
    display these forms. I read about Remoting, but am confused a little
    on how that works if I'm developing the forms and they will all be
    installed on the same PCs. Is remoting the way I should go? If so,
    does anyone have a link to an example of how to do so, or a book
    reference perhaps? If not, any other ideas would be greatly
    appreciated.

  • C.C. \(aka Me\)

    #2
    Re: UI in a Windows Service

    You cannot have a GUI in in Windows Service. It is not attached to the
    desktop that the user is on so it will never get displayed. If you need to
    get user input then you should not use a service.


    --
    ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
    Charles Cox
    VC/VB/C# Developer
    ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~

    "eric" <ericmschmidt@g mail.com> wrote in message
    news:1138140610 .134910.9010@z1 4g2000cwz.googl egroups.com...[color=blue]
    > Alright, I have been looking around trying to figure out a way to solve
    > my problem and I'm a little confused. I have a Windows Service that
    > sits and listens to the serial port for information. Upon receiving
    > it, the Service formats the data accordingly and then requires input
    > from the user via three forms. I'm confused on how I can/should
    > display these forms. I read about Remoting, but am confused a little
    > on how that works if I'm developing the forms and they will all be
    > installed on the same PCs. Is remoting the way I should go? If so,
    > does anyone have a link to an example of how to do so, or a book
    > reference perhaps? If not, any other ideas would be greatly
    > appreciated.
    >[/color]


    Comment

    • chris martin

      #3
      Re: UI in a Windows Service

      > You cannot have a GUI in in Windows Service. It is not attached to the[color=blue]
      > desktop that the user is on so it will never get displayed. If you
      > need to get user input then you should not use a service.
      >
      > "eric" <ericmschmidt@g mail.com> wrote in message
      > news:1138140610 .134910.9010@z1 4g2000cwz.googl egroups.com...
      >[color=green]
      >> Alright, I have been looking around trying to figure out a way to
      >> solve my problem and I'm a little confused. I have a Windows Service
      >> that sits and listens to the serial port for information. Upon
      >> receiving it, the Service formats the data accordingly and then
      >> requires input from the user via three forms. I'm confused on how I
      >> can/should display these forms. I read about Remoting, but am
      >> confused a little on how that works if I'm developing the forms and
      >> they will all be installed on the same PCs. Is remoting the way I
      >> should go? If so, does anyone have a link to an example of how to do
      >> so, or a book reference perhaps? If not, any other ideas would be
      >> greatly appreciated.
      >>[/color][/color]

      You can, however, using .NET, send custom commands. Check out the OnCustomCommand
      method.

      It is also possible to communicate with a service through named pipes. But,
      I believe that is outside the realm of the .NET framework.

      Chris Martin


      Comment

      Working...