Color Palette

See AlsoAYWMYI

 

Use the Color palette to change the colors of a form5272EF or controlXX9KJT and set up a custom color scheme.

         To open the Color palette, choose Color Palette from the Window menu.

         To close the Color palette, double-click the Color palette's Control menu1LEPVNO.

 

The Color palette consists of:

A box that displays the currently selected foreground and background colors for the form or control.

 

A box that displays the currently selected foreground and background colors for any text in the form or control.

 

Note   If Microsoft Windows doesn't display the text and background colors that you've selected, it may be because one of the colors you've selected is dithered (a color comprised of up to three different colored pixels).  When displaying text in Microsoft Windows, the text and the area immediately behind it must be solid colors.  If you choose a dithered color for either the text or the background color, the nearest solid color will be used.

 

 

A set of colors.  To select a color, click the color box you want.

         To change the foreground color, click the inner box on the default color boxLQMETK, then click the color you want.

         To change the background color, click the outer box on the default color box, then click the color you want.

 

Click this button to use the colors specified in the Control Panel56C790N.

 

Click this button to display or set custom colors.

 

A set of custom colors.  To select a color, click the color box you want.

 

Click this button to open the Define Color dialog box and define custom colors.

 

Note   You can also set the colors for forms and controls with the ForeColor1W9T6JQ or BackColor1W9T6JQ property.

 


See Also

Help:

Creating Custom ColorsCJ5GBZ

Setting ColorsXBS80I

 

Learning Visual Basic:

Using Color and Graphics

 

Programmer's Guide

Chapter 2, "Your First Visual Basic Application"