Private Sub FrmMain_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing NotifyIcon1.Dispose() FrmResocontoChiusura.Show() End Sub