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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:27:19+00:00 2026-05-24T16:27:19+00:00

I want my program to start with a balloon icon and once it is

  • 0

I want my program to start with a balloon icon and once it is clicked for a window to come up but when I try to run a class I made that shows the message, I cant run it because it’s not a form. Basically I could get a balloon alert to pop up but Once clicked it would not open the form because it seems like the program already terminated (Main() in Program.cs already finished)

I tried stuff like this:

static void Main() {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);

        new TrayIcon();
    }

but it just shows the alert and doesn’t work.

If I make my TrayIcon Class a partial Form and Used Application.Run() It works but an empty, ugly form pops up too.

So how can I just make the balloon pop up at first without the program ending?

  • 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-24T16:27:19+00:00Added an answer on May 24, 2026 at 4:27 pm

    Just use the Application.Run overload that does not take a Form parameter:

    static void Main() 
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
    
        new TrayIcon();
        Application.Run();
    }
    

    This will start a Windows message loop on the current thread, which will process UI messages, including those necessary for your notifyicon to become visible and responsive.

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

Sidebar

Related Questions

I want to have a Singleton that will be auto instantiated on program start.
I have a program that I want to start at Windows start up. So
I want my program to start off using a countdown timer that will be
I want to make a script that starts a program and then sends it
I want my program to change its window's caption in response to various user
I want to program an Add-Window to my application, much like the Add Contact-window
I want to use the java.util.Preferences API but I don't want my program to
I want a program that does what I said in the title. I realize
I want to execute a code snippet when program start-up, so what is the
Suppose I wish to start a program within a JFrame, as is normal, but

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.