FIX: File Not Loaded If No Extension in Load Picture Dialog

Last reviewed: October 30, 1997
Article ID: Q80643
1.00 2.00 WINDOWS kbenv kbbuglist

The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, version 2.0
- Microsoft Visual Basic programming system for Windows, version 1.0

SYMPTOMS

When loading a Windows bitmap, icon, or metafile into the Picture property of a Visual Basic form or picture control by using the Load Picture dialog box (activated by choosing the ellipsis button to the right of the Properties list box), the default filename extension (BMP, WMF, ICO) is not automatically added if you enter a base filename without an extension.

RESOLUTION

Type in the extension at the end of the filename. To correctly load a file, you must specify both the base filename and the extension.

STATUS

Microsoft has confirmed this to be a bug in the products listed above. This bug was corrected in Microsoft Visual Basic version 3.0 for Windows. In Visual Basic version 3.0, .BMP is added as the extension if none is specified.

MORE INFORMATION

Normally, a Windows file list dialog box that displays one or more default extensions will automatically locate and open a file with any of the default extensions if given the base name. However, this does not occur when you select a file for the Picture property by using the Load Picture dialog box.

Steps to Reproduce Problem

  1. From the File menu, choose New Project.

  2. Select the Picture property from the Properties list box.

  3. Choose the ellipsis button on the right of the Settings box to bring up the Load Picture dialog box.

  4. Type the name of one of the files listed in the Files box without its extension and choose the OK button.

A "File Not Found" error message displays telling you the selected file was not loaded.


Additional reference words: buglist1.00 buglist2.00 fixlist3.00 1.00 2.00
3.00
KBCategory: kbenv kbbuglist
KBSubcategory: EnvtRun APrgGrap
Solution Type : kbfix


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: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.