D
Daniel Sélen Secches
Hi all
I want to do in my application something like we have on ICQ. when you close
the application it doesn't close.
I've done like that
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = CancelFlag
If CancelFlag Then
Me.Hide()
End If
End Sub
and i've put in a exit button click that
cancelflag = False
iconn.Visible = False
Me.Close()
it works just fine... but when i try to close the windowsXP with the program
running it won't close.
what can i do?
who to know if the close event comes from window or from the user?
--
tks.
Daniel Sélen Secches
CWD Web Internet.
www.cwd.com.br
I want to do in my application something like we have on ICQ. when you close
the application it doesn't close.
I've done like that
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = CancelFlag
If CancelFlag Then
Me.Hide()
End If
End Sub
and i've put in a exit button click that
cancelflag = False
iconn.Visible = False
Me.Close()
it works just fine... but when i try to close the windowsXP with the program
running it won't close.
what can i do?
who to know if the close event comes from window or from the user?
--
tks.
Daniel Sélen Secches
CWD Web Internet.
www.cwd.com.br