Returns or sets an image that contains the palette to use for the control.
Object.Palette [ = pic ]
The Palette property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
pic |
A string expression specifying a file containing a graphic. The default is no picture. |
In addition to .bmp files, a .dib, or .pal file can be used to set the palette.
The following statement changes the AForm's Palette to a given image file:
frm1.Palette = LoadPicture ("c:\dirname\filename.bmp")