>I have been tring to find how to change the color of a command button but have not been sucessful. How do you change the color of a command button or can it be done.
>
Herman,
Using the normal VFP button, it can't be done. VFP buttons use the Windows color setting for 3D controls. Unfortunately VFP forms also use this color so if you do happen to change it, you buttons and forms will be the same color.
You can programmatically manipulate these settings but you would be changing the user's preferences. The function is SetSysColors.
You can also create a container that behaves like a button and change its backcolor. You can find some examples on the CompuServe forum at
http://forums.compuserve.com/vlforums/default.asp?SRV=MSDEVAPPS. Joining is free.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao