Results 1 to 2 of 2

Thread: form exiting method??

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    39

    form exiting method??

    in vb/vb.net u have a method wich is called when the form is closed, what is the c# equivelent??

    or is there a better way, i have a thread which i want to end with the form, but if the user clicks the window close button the thread keeps right on going

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I remember it's :

    OnClosing()

    if you were asking about closing a form then use this :
    VB Code:
    1. this.Dispose();

    If you have any C# relevant then go to C# section there you will get your post answered on the fly . hehe

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