Results 1 to 2 of 2

Thread: Dispose Usercontrol?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2006
    Posts
    19

    Dispose Usercontrol?

    Hi guys,

    I have read alot of threads regarding dispose and cleaning up.
    The one thing I am not sure on do you need to dispose of a usercontrol, say a simple class inheriting textbox with a couple of additonal properties, when you close the form?

    If so, would you put that in the formclosed event?

    Cheers

    Pickles

  2. #2
    Hyperactive Member josep's Avatar
    Join Date
    Sep 2006
    Location
    Barcelona
    Posts
    409

    Re: Dispose Usercontrol?

    Hi and welcome to the forums

    I think that the right way its creating a dispose method for the user control, that disposes all controls inside this usercontrol; once you dispose the form it will dispose all controls inside it.

    Hope this helps
    Useful links:DB connection strings ADO.NET VB.NET Tutorials

    • Don't forget to close the thread if solved
    • If this post helps you rate it

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