remove a object

Discussion in 'Questions (Windows Mobile)' started by paul j, Dec 6, 2007.

  1. paul j

    paul j Member Licensed User

    on runtime I add a object to form1, but I also want to remove it again, to use the exacltly same obect on another (form2 - form#). Is there a DeleteObject-methode available on runtime or maybe a ChangeParent-methode?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Both are available.
    You can use YourObject.Dispose to delete the object.
    Afterwards you will need to add it again with AddObject("YourObject",...)

    You could also change a controls parent with FormLib.ChangeParent.
     
  3. paul j

    paul j Member Licensed User

    thanks Erel, exactly I need. I overlooked it in the help
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice