>Hi Dan thanks, well yes, I have methods in form1, and I don't put codes in the init and load.
>
>My problem here is, I've created images in form1 using addobject. What I want to do now with the button is to re-create all the images. Of course, when the program does the addobject again, I'll get the error that it already exists. :)
>
>A better question here should be, how to delete all the images created using the addobject (becoz I have other images in the form created at design time).
>
>Thanks! :)
If you want to 'refresh' images only then you just change Image.Picture property. Before calling Addobject('myimage','image') you would have to check if this control already exists, e.g.
If Type('Thisform.myimage')<>'O'
Thisform.AddObject('myimage','image')
....
Endif
Thisform.myimage.Picture=...
Edward Pikman
Independent Consultant