devxlogo

Changing the Color of Command Buttons

Question:
Is there a way to make command buttons appear in the color I choose, rather than the color selected in Windows > Display Properties > Appearance > 3DObjects?

Command buttons have no BackColor property and the documentation says that colors for some items, such as system menus, cannot be changed. Is that true of CommandButtons? I hope not; I don’t like “clashing” buttons?and they don’t look very professional on a distributed app.

Answer:
The background color of command buttons in Windows is determined by the Windows Color Scheme. Visual FoxPro therefore does not allow the color to be changed.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.