?
Solved

NotifyIcon in SysTray won't go away after program is closed unless you move your cursor over it

Posted on 2005-03-31
3
Medium Priority
?
480 Views
Last Modified: 2008-02-01
I have an app that has a NotifyIcon in the system tray.  When I close the program by a button tied to the End command, my app closes but the Icon stays in the system tray until I move my mouse over the system tray.  
Is there any way to clear the Icon out of the system tray when the app is closed?
0
Comment
Question by:jettman26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
wyoung76 earned 800 total points
ID: 13678579
You could use the Form.Closing event in your main form.  In it, you could hide the NotifyIcon so that it disappears before the application closes.
0
 

Author Comment

by:jettman26
ID: 13680219
I tried the following but it didn't work.

Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
        NotifyIcon1.Visible = False
    End Sub
0
 

Author Comment

by:jettman26
ID: 13680352
I got it to work.  I was setting the NotifyIcon1.Visible property in the wrong spot.
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question