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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:03:31+00:00 2026-05-22T13:03:31+00:00

Context: I’m working with a relatively simple winforms application, written in VB.NET on the

  • 0

Context:
I’m working with a relatively simple winforms application, written in VB.NET on the .NET 3.5 framework in Visual Studio 2010.

Issue:
The FormLoad event creates two threads when the program is opened. One handles automatic update checking and the other performs a time consuming task syncing files with the internet. These threads are initialized as follows:

   Dim update_check_thread As New Threading.Thread(AddressOf auto_update_check)
   update_check_thread.IsBackground = True
   update_check_thread.Start()

The form also uses the NotifyIcon control to draw a notification icon on the taskbar. Unfortunately, each thread started causes the application to draw an additional icon to the taskbar. Additional icons are drawn (sometimes) when any threaded function is used after the program is opened.

Is there a way to “throttle” the number of icons that the form is allowed to draw? I’ve tried moving the code to a background worker, however the same thing continues to happen.

Thanks in advance!

  • 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-22T13:03:31+00:00Added an answer on May 22, 2026 at 1:03 pm

    This is a common kind of problem to have in VB.NET. It supports the horrid ‘use the class name as an object’ syntax, like Form1.Show(). This invariably causes trouble when you use threads, referencing the class name like that creates a new instance of the Form1 class when used on a thread. Another form, it isn’t visible because its Show() method was never called. But you do see the extra NotifyIcon. You’ll have to fix this, it causes other trouble as well because whatever you thought you’d do to the visible form actually happens on the invisible one.

    Add Sub New to the class and set a breakpoint on it to find the code that does this.

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

Sidebar

Related Questions

Context: I'm in charge of running a service written in .NET. Proprietary application. It
Context: I am building an Add-in using visual studio 2010. One of the actions
Context : Windows 7 + TortoiseSVN + Visual Studio 2010 + VisualSVN In the
Context is C#,.Net framework. Is it the application that runs without any need to
Some context: one of the systems I'm working on is a .net 2.0 web
Context: In an ASP.NET application, I need the behavior of the ItemTemplate / EditItemTemplate
Context: C# 3.0, .Net 3.5 Suppose I have a method that generates random numbers
NHibernate.Context.WebSessionContext , otherwise known as web session context , plays nicely with ASP.NET, but
The context of the question is ASP.NET MVC2 / EF4. I have a number
First some context: I have an MVC3 .net project which, for the sake of

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.