BUG: ListBox Caption Changes When Copied as Control Array

Last reviewed: September 25, 1997
Article ID: Q174303
The information in this article applies to:
  • Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0

SYMPTOMS

The ListBox control that is copied as a control array results in a different caption. This behavior differs from other Visual Basic controls; other controls copied as a control array contain the same caption text as the original control.

RESOLUTION

The ListBox caption cannot be changed.

The purpose of the ListBox caption is for control identification in the IDE only. The ListBox caption has no effect on the control at run-time or in the made EXE.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Visual Basic version 5.0. Microsoft is researching this problem and will post new information here as it becomes available.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start a new Standard EXE project in Visual Basic. Form1 is created by default.

  2. Add a ListBox control and two other controls such as a Command button and a Combo box. Select all three controls, and then triple-click the Left property to arrange the controls vertically.

  3. Select all three controls, and then click Copy on the Edit menu. From the Edit menu, click Paste. Click Yes when asked to create a control array for each of the three controls.

    Result: Note that the ListBox caption text changes while the caption of the other controls remain the same.


Additional query words: list box
Keywords : vb5all VBKBCtrl VBKBInt VBKBListBox VBKBStd
Version : WINDOWS:5.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.

Last reviewed: September 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.