ntfyIcon is an object NotifyIcon
Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing e.Cancel = True Me.Hide() ntfyIcon.Visible = True End Sub
This is my code everytime the user attempts to close the program. However, when I try to shutdown or log off the computer, nothing happens. It turns out that this causes Windows to behave differently.
So, I am asking, can anyone help me think of a code that will not cause Windows to behave differently?
This post has been edited by Ricendithas: 01 April 2009 - 06:19 AM