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

  • SEARCH
  • Home
  • 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 7783575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:52:47+00:00 2026-06-01T19:52:47+00:00

I need to create running windows process (the one seen on task manager) when

  • 0

I need to create running windows process (the one seen on task manager) when a Windows form loads because I need this application to be monitored by nagios (http://www.nagios.org/).
So when the form loads, an exe will run in the background process, and when form closes, the process will have to stop too.

Update

So when the form loads, the current ApplicationName.exe will display in the Task Manager Processes Tab, and when form closes, the ApplicationName.exe will have to stop too.

I also found out that when you Start Without Debugging, the ApplicationName.exe will display in the Processes Tab of the Task Manager but if you Start Debugging (F5), you wont see the ApplicationName.exe in the Processess Tab. Now i want to make sure that even if I will Start Debugging it, I can still see the ApplicationName.exe in the Processes Tab. How do i do that?

  • 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-06-01T19:52:50+00:00Added an answer on June 1, 2026 at 7:52 pm

    Clarification needed: is the additional process that is running the Nagios monitor, or something else you create?

    Either way, you can use Process.Start() to kick off a separate application from within your own:

    //event handler for the form's Load event
    public void MyWindow_FormLoad(object sender, EventArgs e)
    {
       //kick off the process you want
       Process.Start(@"C:\Program Files\MyOtherApp\MyOtherApp.exe");
    }
    

    There are overloads allowing you to specify arguments, or customize the startup behavior of the process. But this is the basic call and (given a real program location) should kick off the separate EXE as a new process with default startup behavior (as if you’d double-clicked it in Windows Explorer).

    Now, if you need more, like a way to have the two programs talk to each other, then you’ll need to expand your question with the appropriate details.

    EDIT FROM COMMENT: Ah. OK, that’s slightly different.

    Normally, any EXE that is running at any given time will appear in the Task Manager’s processes list by default, with no special coding necessary. It’s in fact very hard to get a proces to NOT show up in that list, because a process that doesn’t want to be seen is one of the hallmarks of a virus.

    However, when you run an app in Debug mode from Visual Studio, the code is compiled and run from within VS’s process boundaries, and doesn’t show as its own process. To get it to show up as its own process in Task Manager, the compiled application must be run from outside VS. You can still debug it, by “attaching” VS’s debugger to the running process after you have started it. But, this means that the app must be stable and long-running enough for you to manually attach to it. A program that has finished most or all of its execution by the time it reaches a “resting” state will need some modification in order to wait for you to attach to it before doing whatever it was you wanted to debug.

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

Sidebar

Related Questions

I have one main application which launch two other process's, i just need to
We need to create a basic PDF reader running on J2ME. While there are
I'm running a process from inside a windows service using: ProcessStartInfo processStartInfo = new
Requirements I want to publish a Java GUI application on Windows 7. This application
I need to create a server process which can push high frequency data (1000
Given a Java Servlet (running on a Windows server) which creates a new process
I have a new PC running Windows 7 and Visual Studio 2010, and need
One of my company servers running Windows 2000 is hosting a Certificate Authority (microsoft
I have a Java program and I need to create a Windows Service from
I need to create a persistent Java based application that will run at set

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.