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. General Programming
  3. C#
  4. To generate a pop up from windows service..

To generate a pop up from windows service..

Scheduled Pinned Locked Moved C#
help
4 Posts 3 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.
  • A Offline
    A Offline
    ag46677
    wrote on last edited by
    #1

    Hi all, The problem is I am unable to generate the an alert/popup from a windows service. Can any body has got the solution for generating it. Please help. Its urgent. :( Thanks in Advance Ankur

    L L 2 Replies Last reply
    0
    • A ag46677

      Hi all, The problem is I am unable to generate the an alert/popup from a windows service. Can any body has got the solution for generating it. Please help. Its urgent. :( Thanks in Advance Ankur

      L Offline
      L Offline
      Leyu
      wrote on last edited by
      #2

      You can't! Write to event log...

      A 1 Reply Last reply
      0
      • L Leyu

        You can't! Write to event log...

        A Offline
        A Offline
        ag46677
        wrote on last edited by
        #3

        Thanks for the reply .. but how does the general pop up ex: system connection, scan and etc pop up comes. I think these are all services running in the system which on detecting the required thing generates an alert. Isn't it??? Thanks Ankur

        1 Reply Last reply
        0
        • A ag46677

          Hi all, The problem is I am unable to generate the an alert/popup from a windows service. Can any body has got the solution for generating it. Please help. Its urgent. :( Thanks in Advance Ankur

          L Offline
          L Offline
          Laddie
          wrote on last edited by
          #4

          It can be done in round round way.. 1) Create another application ie form application and create a property that will be displayed as the message. 2) When you require to show the message create the object of this Form and set the property to the message you want and call the Show() Method. 3) Now go to your service right click > Properties > In the first tab you will find some check box called "Allow the service to interact with desktop") and restart the service. Note : It is highly discouraged to set the option "Allow the service to interact with desktop".

          Thanks Laddie Kindly rate if the answer was helpful

          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