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?
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?
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
thanks
but how can you get the events without looking thru msdn?
isnt there an event explorer or something?
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.
In VS 2003 it is back to how it was before with the events on the right.