Here's a way to do it if you're using VFP8 Toolbox to drop your controls:
- In the Toolbox, right-click on the class you want to change (say, the Commandbutton) and select "Properties"
- Next to the Properties listbox, click the Add button
- In the Value combo, select "Name" from the list
- For the Value, enter what you want to name this class -- for example: MyButton
Now, when you drop this Commandbutton on a form/class, it will set the Name property to what you specified. If you already have a control by that name, then it will revert to the default naming scheme (simply because it won't be able to set the Name property because an instance already exists).
>When I add the class "cmdExit" button to a form, it names the button "cmdExit1". I was wondering if there is a way to prevent it from putting the 1 on it as there is only one of these buttons on a form =)
>
Ryan Katri
COB System Designs, Inc.