RebeccaLynn, It just that when I press the X button I expect the program to close - and not continue to run in the background (Actullay I can't think of any MS programs that does not unload when you click the X).
You could show a icon in the system tray that indicates that the program still runs and at the same time let the user have a possiblility to show the application window agian.
It could look like:
----------------------------------------------------------
Private ForceExit As Boolean
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If Not ForceExit Then
NotifyIcon1.Visible = True
e.Cancel = True
Me.Hide()
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ForceExit = False
Me.NotifyIcon1 = New System.Windows.Forms.NotifyIcon(Me.components)
NotifyIcon1.Icon = New Icon("S:\janus\icons\ego\end.ico"

NotifyIcon1.Text = "Form1 (NotifyIcon example)"
NotifyIcon1.Visible = False
AddHandler NotifyIcon1.DoubleClick, AddressOf NotifyIcon1_DoubleClick
End Sub
Private Sub NotifyIcon1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.Show()
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
ForceExit = True
Me.Close()
End Sub
----------------------------------------------------------
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'