VB Custom Controls Support only Certain Picture Formats

Last reviewed: June 21, 1995
Article ID: Q80779
The information in this article applies to:

- Professional Edition of Microsoft Visual Basic for Windows,

  versions 2.0 and 3.0
- Microsoft Professional Toolkit for Microsoft Visual Basic programming
  system for Windows, version 1.0

SUMMARY

The Load Picture dialog box for the 3-D Command Button, 3-D Group Push Button, Gauge, and Picture Clip custom controls include the extensions for picture formats that are invalid formats for these controls.

MORE INFORMATION

The 3-D Command Button, 3-D Group Push Button, Gauge, and Picture Clip custom controls use the same dialog box that Visual Basic uses to assign pictures to certain properties. However, not all .BMP, .ICO, and .WMF files are valid picture formats for the properties of these controls.

The following table lists the valid formats for the picture properties of custom controls and the error messages displayed if an invalid picture format is used:

                                        Valid     Error Message if
Control                Property         Formats   Invalid Format

3-D Command Button     Picture          .BMP,     "Only Picture
                                        .ICO      Formats '.BMP' and
                                                  '.ICO' supported."

3-D Group Push Button  PictureUp,       .BMP      "Only Picture Format
                       PictureDn,                 '.BMP' supported."
                       PictureDisabled

Gauge                  Picture          .BMP,     "Invalid Picture."
                                        .ICO

Picture Clip           Picture          .BMP      "Only Picture Format
                                                  '.BMP' supported."

For additional information on Visual Basic version 2.0 custom controls, review the Professional Features manual.


Additional reference words: 1.00 2.00 3.00
KBCategory: kbprg
KBSubcategory: PrgCtrlsCus APrgGrap


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: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.