Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4251486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:40:06+00:00 2026-05-21T04:40:06+00:00

Before anyone tells me – I know the usual barriers to this problem, especially

  • 0

Before anyone tells me – I know the usual barriers to this problem, especially with Windows 7 and the like. You can’t easily make a service application and include a user interface within it.

The fact remains, however, that some applications do something that looks suspiciously like that. Virus killers for example. Most have a service component, and usually some kind of driver component, and a user interface. The user interface tells you when you have a virus.

That’s great. I’ve got a service that does some data processing and may need to alert the user of problems with the data. I’m using WCF so the service I’ve written can communicate with a Windows Forms application I’ve also written. The Forms app just pops up a notification area balloon thing when the service tells it to.

But what happens if the user closes the forms application? Let me go back to the virus killer analogy. What happens if a user closes the UI portion of antivirus software? Does the antivirus stop notifying the user if it detects a virus? I can’t believe that to be the case.

What I want to know is this – is there a way I can have my Forms application restart if a user closes it, either by accident or deliberately? I’ve come up with two ways in my head.

  1. Have another application which checks if the forms application is running. But what if both are closed? Another application to check the status of that? And another to check the status of that? I think not 🙂

  2. Have the service check the sessions and start the Forms app in an appropriate session as the interactively logged on user. Unreliable. What if it’s a terminal server?

It’s not a massive hurdle. If the user closes the forms application, then it’s their own fault if they don’t get data processing alerts. But I would like to do what I can to prevent them from messing everything up.

So, any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:40:06+00:00Added an answer on May 21, 2026 at 4:40 am

    I think you’ve done enough, honestly. You can never prevent the user from messing up. If they close your UI, they don’t get alerts. That should be obvious. If you really do want to restart your process though, go with your second idea of having the service start your UI app under the appropriate session. It isn’t that hard to do, and a bit of Google will get you the answer. Use Cassia to query the running sessions if you are concerned about terminal services.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone seen this before - and can anything be done about it? This
Has anyone else run into this problem before? I've got a method that calls
Anyone know a good lib where i can run the strings before they are
I don't know if anyone has seen this issue before but I'm just stumped.
Before I embark on writing my own solution to this issue, can anyone point
Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of
Before anyone recommends that I do a google search on this, I have. I
Has anyone run into this error message before when using a timer on an
Does anyone know how to stop jQuery fromparsing html you insert through before() and
I think the question is pretty self explanatory. Anyone done this before? UPDATE :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.