If you want to "exit" and stay in the system tray, trap FormClosing event

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
' Hide from taskbar
Me.ShowInTaskbar = False
' Set window state to minimized
Me.WindowState = FormWindowState.Minimized
' Cancel exit. Notice, you have to provide *some* way to exit app
' I would use a (global) boolean flag to indicate if we should exit or minimize to tray
e.Cancel = True
End Sub

I'm assuming you are already showing the notify icon. If not, add your show notify icon -code before "hiding the form".

Ok, your second question. AFAIK, it's very difficult to hook windows shell, and whatever language you're using, you'll need API calls to do that. There's no easy way. Try some googling for that topic. I've seen that question asked a few times but never seen a code how to do it :S

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...