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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:42:33+00:00 2026-05-20T19:42:33+00:00

I am making a multiple form based application and have encountered a problem with

  • 0

I am making a multiple form based application and have encountered a problem with a notify icon. I have added the notify icon to the first (main) form the user sees but I quickly encountered a problem when the user navigates away from this form and then back to it where a new notify icon is added to the task bar. The way around this i have found is to call ShowDialog() on forms loaded from the main menu and then just Ilosing these forms when the user navigates back. Is this really the only way to do this? I have a very deep application with multiple forms deep do I always have to keep the first form in memory and on screen to maintain the notify icon and ensure new notify icons are not added to the taskbar?

Thanks

  • 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-20T19:42:34+00:00Added an answer on May 20, 2026 at 7:42 pm

    As with other WinForms components, this one doesn’t need to be placed in a form to work correctly. You can instantiate it, set properties and bind events on another class that isn’t a Form. For example, this is a class that could manage a NI control:

    namespace WinformsTesting {
    
        using System;
        using System.Windows.Forms;
        using System.Drawing;
    
        public class NotifyIconManager {
    
            private NotifyIcon _ni;
    
            public void Init() {
    
                _ni = new NotifyIcon();
                _ni.MouseDoubleClick += new MouseEventHandler(_ni_MouseDoubleClick);
                _ni.Text = "This is my notify icon";
    
                Icon icon = new Icon(@"C:\temp\myicon.ico");
                _ni.Icon = icon;
                _ni.Visible = true;
    
            }
    
            void _ni_MouseDoubleClick(object sender, MouseEventArgs e) {
                MessageBox.Show("Hello");
            }
        }
    }
    

    The only problem here is interaction with the rest of your application, but depending on how you’re using the NI control this might be a good starting point.

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

Sidebar

Related Questions

I have been making a little toy web application in C# along the lines
I'm using a select tag in a form I'm making that allows multiple selections,
I have a project with multiple forms and when, for example, Form A opens
I have a select options form fields setup like below: <select name=options[] multiple=multiple> <option
In my iPhone app, the user will be making multiple NSStrings. Once these are
I have an ASP.Net web application that is deployed to a number of different
Is it acceptable (in a standard's sense) to have a form which can span
I'm making a Calendar application for myself to use, and to learn. I've had
Let me first try to explain what I'm trying to achieve. I'm making a
I have multiple select boxes on the page all of which share the same

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.