>I have a button from which I want to create a class. How can I do that?
In addition to what Gregory said, you can select several objects on a form (draw a marquee round them) and save as Class. VFP will then create a container class and put all the objects into that. I design most of my visual classes that way.