Is there a way to change the background color of a button so that it is the same color as the form? This way only the word that is on the button will appear. I'm trying to create clickable text. Is there an easier way? Thanks.
1. In VFP8.. this can be set by choosing the background color property.
2, In VFP7.. instead of using command buttons..
Drop the OLE ActiveX control (just as you drop Command button)...
Choose the 'Microsoft Forms 2.0 CommandButton' control on to the form. Resize it to the command buttons size and set its properties and command codes as you would do for a command button.
Now the trick is... you cannot fill up the backcolor property since it is disabled. But instead.. put the code in the InitEvent of that control..
This.BackColor = RGB(255,128,128) .. for example.
Save and run. You are done
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.