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...