|
-
Jul 20th, 2003, 07:49 PM
#1
Cancle closing[resolved]
In the form actions closing, I have code to pop-up a dialog box which asks the user if they want to save there work or not or if they want to cancle the closing. How do I tell it to not close when they hit cancle?
Last edited by Kasracer; Jul 20th, 2003 at 11:49 PM.
-
Jul 20th, 2003, 10:10 PM
#2
Sleep mode
Here is how to handle closing the form event ,
VB Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
-
Jul 20th, 2003, 11:49 PM
#3
Originally posted by Pirate
Here is how to handle closing the form event ,
VB Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Thanks alot, works perfectly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|