Share via


How to: Set Form Colors

You can control a form's colors by using the ColorSource Property to base the colors on an existing color scheme, or you can use the Color Palette toolbar to change the foreground or background color of your forms and the controls within them.

To set form colors using the ColorSource property

  • On the Layout tab in the Properties window, choose ColorSource and select a value.

To set the foreground or background color of a form or control

  1. From the View menu, select Color Palette toolbar.

  2. Choose Foreground Color or Background Color.

  3. Select the control or form you want to change.

  4. In the Color Palette toolbar, select the color you want to use.

  5. To see more color choices, choose Other Colors on the toolbar.

To create a custom color

  1. In the Color Palette toolbar, choose Other Colors.

  2. In the Color dialog box, choose Define Custom Colors to display the Custom Color Selector.

  3. Select one of the Custom Colors boxes, and then click in the Custom Color Selector to select the custom color you want.

  4. Choose Add to Custom Colors to add the new color to your palette.

  5. Choose OK.

    Visual FoxPro applies the custom color to the current selection.

See Also

Tasks

How to: Set the Design Area for a Form

Reference

BackStyle Property

BackColor, ForeColor Properties

Form Designer

Properties Window (Visual FoxPro)

Other Resources

Customizing Forms

Working with Forms

Creating Forms