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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:27:58+00:00 2026-05-12T10:27:58+00:00

How can I have my application minimize itself to the system tray in WindowsXP/Vista?

  • 0

How can I have my application minimize itself to the system tray in WindowsXP/Vista?

I’m also looking for a way to have a message display itself when the mouse is hovered on the icon. Is it possible to have two lines in the pop up balloon?

  • 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-12T10:27:58+00:00Added an answer on May 12, 2026 at 10:27 am

    I assume you mean minimize to the System tray because you have talked about icons and message ballons?

    The following code will set up a tray icon:

    private void SetUpTrayIcon()
    {
        notifyIcon = new System.Windows.Forms.NotifyIcon();
        notifyIcon.BalloonTipText = "Ballon minimize text";
        notifyIcon.BalloonTipTitle = "Ballon minimize title";
        notifyIcon.Text = "Icon hover text";
        notifyIcon.Icon = new  System.Drawing.Icon(
                   System.Reflection.Assembly.GetExecutingAssembly()
                       .GetManifestResourceStream("MyIcon.ico"));
        notifyIcon.Click += new EventHandler(HandlerToMaximiseOnClick);
    }
    

    To show the icon in the tray (you may want to do this on the window state change event for example, do something like the following:

    if (notifyIcon != null)
    {
        notifyIcon.Visible = true;
        notifyIcon.ShowBalloonTip(2000);
    }
    

    To display a ballon on mouse hover you want to use the same code as above possibly in the mousemove for the icon.

    Note: ShowBalloonTip is overloaded if you want to change the message at different points. The message the balloon displays will respect newlines eg Environment.NewLine can be added to it.

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

Sidebar

Related Questions

In C++, a console application can have a message handler in its WinMain procedure,
I have an application written in Delphi XE and I can maximize and minimize
I have an application where I can have an image moving towards the eye.
I have an application that can potentially have hundreds of memory mapped, i.e., mmap()
In my application I have a customer who can have multiple locations. When you
I have a table like this: Application,Program,UsedObject It can have data like this: A,P1,ZZ
I have application that is up more than 3 days. I can see in
I have Application X (not mine!) with Subform x1, x2, x3. How can I
I'm writing a drawing application that includes shapes that can have children. When I
I have an application where multiple users can login(not simultaneously though!only a single user

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.