>hi
>how I can do to save with another name an object of a class, for example if I have in a class an object with 5 buttons to go out, to save, to erase, to cancel and to edit and want then another bar only 3 buttons to go out, to cancel and to save as do it without having to do it again
You may have each button as a separate class, you can also play with visible property of your buttons and you would need to re-arrange them in run-time.
If it's not broken, fix it until it is.
My Blog