Dragan,
Check
http://myvfpblog.blogspot.com/2007/11/unbreakable-objects-part-iii.html. It shows how to create CLEAR ALL resistent forms.
>The only reason that I'm not using the toolbox is that it's not coming up on its own. It's a VFP form. When I test the app, CLEAR ALL on launch and exit will kill it, and it doesn't restore. Which is too bad, I mean my not using it, but I simply forget.
>
>As for the naming, I do it manually, or retroactively rename the control - in PEM window and in code, or (if still early enough before code is written), have a builder which will compose names out of class prefixes (including "Yb" for my yellow button class) and controlsources. If no source, then from the caption. After that, any remaining nameless controls are easy to deal with.
--sb--