DOCUMENT:Q192253 03-SEP-1998 [vbwin] TITLE :BUG: ImageList: Can't Insert Multiple Images from Root Directory PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0,6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0 --------------------------------------------------------------------- SYMPTOMS ======== When adding images to the ImageList control at design-time, you may encounter the following error message when the files you are trying to add are located in the root directory of a drive: "Error #5" CAUSE ===== From the Insert Picture command of the ImageList property page, the Select Picture dialog allows you to select multiple files to add to the control. If these files are located in the root directory of a drive, the aforementioned error may occur. This problem occurs on Windows 95/98 only. RESOLUTION ========== To avoid the error, select only one picture at a time. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a new Standard EXE project in Visual Basic. Form1 is created by default. 2. Select Components from the Project menu, and check the "Microsoft Windows Common Controls" to add this component to your toolbox. 3. Place an instance of the ImageList control on Form1. Right-click on the control to bring up its context menu, and select properties option to display the control's property page. 4. Select the Images tab, and click the Insert Picture button. A dialog is displayed asking which file(s) you want to insert. 5. Find two image files located in the root directory of a drive, and select both. Click Open to add the pictures. You will get the error message telling you that the insert failed. Additional query words: kbDSupport kbDSD kbVBp kbVBp600bug kbVBp500bug kbImgList kbCmnCtrls ====================================================================== Version : WINDOWS:5.0,6.0 Platform : WINDOWS Issue type : kbbug ============================================================================= 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. Copyright Microsoft Corporation 1998.