Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Can window be created in a window service?

Can window be created in a window service?

Scheduled Pinned Locked Moved IT & Infrastructure
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunyw_2006
    wrote on last edited by
    #1

    hello everyone: In a window service, I want to create a dummy window for receiving some messages from other exe. Is it possible? Thanks. -Freehawk

    F J S 3 Replies Last reply
    0
    • S sunyw_2006

      hello everyone: In a window service, I want to create a dummy window for receiving some messages from other exe. Is it possible? Thanks. -Freehawk

      F Offline
      F Offline
      Felipe Dalorzo
      wrote on last edited by
      #2

      I have something important to ask you... What???? I don't understand what is it that you want? :^)

      1 Reply Last reply
      0
      • S sunyw_2006

        hello everyone: In a window service, I want to create a dummy window for receiving some messages from other exe. Is it possible? Thanks. -Freehawk

        J Offline
        J Offline
        Jun Du
        wrote on last edited by
        #3

        Yes, but be careful with this possibility, because a service can run even when everybody has logged out. - It's easier to make than to correct a mistake.

        1 Reply Last reply
        0
        • S sunyw_2006

          hello everyone: In a window service, I want to create a dummy window for receiving some messages from other exe. Is it possible? Thanks. -Freehawk

          S Offline
          S Offline
          Stephan Samuel
          wrote on last edited by
          #4

          Even if you can, don't. Where it displays will be indeterminate. The whole point of a service is that you don't need a UI. If you need a UI, you're not writing a service. Your best bet is to write a separate application for getting your messages, and pass messages to your service as necessary. Either that, or you can log to disk.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups