Results 1 to 5 of 5

Thread: Form unload? (and all other events that i dont know how to access) - very easy

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    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?

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    MSDN:
    VB Code:
    1. Private Sub Form1_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    2.     ' If you don't want the form to close:
    3.     e.Cancel = True
    4. End Sub 'Form1_Closing

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269
    thanks

    but how can you get the events without looking thru msdn?

    isnt there an event explorer or something?

  4. #4
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    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.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width