|
-
Aug 1st, 2003, 11:29 PM
#1
Thread Starter
Frenzied Member
Form unload? (and all other events that i dont know how to access) - very easy
in vb6, youd click form1 on the left, and select unload on the right..
however in .net, you have form1 on the right..
how can you access the unload property?
-
Aug 2nd, 2003, 01:24 AM
#2
MSDN:
VB Code:
Private Sub Form1_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
' If you don't want the form to close:
e.Cancel = True
End Sub 'Form1_Closing
-
Aug 2nd, 2003, 01:27 AM
#3
Thread Starter
Frenzied Member
thanks
but how can you get the events without looking thru msdn?
isnt there an event explorer or something?
-
Aug 2nd, 2003, 01:36 AM
#4
Yes - on the left hand drop down, select "(Base Class Events)", it populates the right hand drop down with all available events. Select the one you want & it creates it for you.
-
Aug 2nd, 2003, 03:34 PM
#5
In VS 2003 it is back to how it was before with the events on the right.
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
|