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 9160625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:46:57+00:00 2026-06-17T13:46:57+00:00

I have created an Windows application without showing a window form. I need to

  • 0

I have created an Windows application without showing a window form. I need to keep my application running . Now after executing all the codes application become stopped.
I try a way like below.

public void RunForm()
{
    var frm=new Form();
    Application.Run(frm);

}

the application is not stopped but showing form. How can i keep running my application without showing the form?

  • 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-17T13:46:58+00:00Added an answer on June 17, 2026 at 1:46 pm

    Just call Application.Run() and don’t pass anything. It belongs in your Main() method.

    This keeps your main thread active and responsive to Windows notifications. Of course, there are not a lot of them since you don’t have a user interface anymore. Timers will work. A NotifyIcon will work. A hot key registered by pinvoking RegisterHotKey() will work. A low-level windows hook will work.

    And SystemEvents will work. Which is important, you’ll need to subscribe its SessionEnding event to know when the user is logging off or shutting down Windows, you’ll need to terminate your app. Which you do by calling Application.ExitThread().

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

Sidebar

Related Questions

I have created Windows Application. In this, I have multiple tables in dataset, now
I have created two forms in my Windows Application. One Form acts as a
Im using c# .net windows application form. I have created many databases with many
I have created an application in windows form. Once I submit the application, the
hello i have created one windows application in c# .net and its working fine
I have created a windows mobile application in Visual Studio. I want to templatize
We have created a simple wix project for a basic windows application. Everything builds
I have created blank C#/XAML Windows 8 application. Add simple XAML code: <Page x:Class=Blank.MainPage
I have created a Windows Phone 7.5 Silverlight application. Most of the design and
We're writing an application for Windows tablet PCs. I have created a custom control

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.