>I have been successfully using a form class that I created. It is instantiated using oFormName=CREATEOBJECT(MyFormClass). I have some objects on the form as part of the class definition (labels, container for buttons, etc.) and I also add some others programmatically.
>
>Recently I added a temporary commandbutton to the class to test a new method of the form. IT WON'T GO AWAY. I have deleted the commandbutton but it still appears when I instantiate the form at runtime. I have rebuilt the project and the appication. I have exited VFP. But it still appears and even runs an earlier version of the Click() code I put in there.
>
>I am new at doing the runtime instantiation, so maybe I am missing something. How do I kill that commandbutton??? How do I make the instantiated version be the same as the version I edit and save in the class designer???
>
>TIA
>
>Jim
Just to make sure that you didn't overlook the obvious. Delete the EXE. Make sure you check Rebuild All on the Project Manager.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer