DOCERR: Picture Property Cannot Be Set to a General Field

Last reviewed: November 12, 1995
Article ID: Q139184
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SUMMARY

The Visual FoxPro documentation incorrectly states that a control's Picture property can either be set to a bitmap (.bmp) file, an icon (.ico) file, or a general field in a table. The picture property of a control can only be set to a bitmap or icon file. If the Picture property is set to a general field, the image will not appear.

MORE INFORMATION

To display an image on a form from a general field, use an OLE Bound control instead of the image control. Set the ControlSource property of the OLE Bound Control to the general field. To display a picture on some other type of object such as a command button, use a bitmap or icon file.

Step-by-Step Example

  1. Create a new form.

  2. Add a table containing a general field to the form's data environment.

  3. Add an image control to the form.

  4. Select the Picture property in the properties sheet, and click the fx button to bring up the expression builder.

  5. Select the general field from the fields list, and click OK.

  6. Save and run the form. When the form is run, a gray box appears where the picture should display.


Additional reference words: 3.00 VFoxWin
KBCategory: kbtool kbdocerr
KBSubcategory: FxtoolFormdes


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.