BUG: DBCombo Dropdown List Detaches While Dragging Parent Form

Last reviewed: October 14, 1996
Article ID: Q142469
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0
  • Microsoft Plus! for Windows 95

SYMPTOMS

The DBCombo control drop-down list becomes detached from the control and the parent form if the user drags the form while the drop-down list is displayed in Microsoft Visual Basic version 4.0 for Windows. This behavior is reproducible in both the 16-bit and 32-bit versions of Visual Basic version 4.0 running under the Microsoft Windows 95 and Microsoft Windows NT operating systems.

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

In Microsoft Windows NT, this behavior can be eliminated by clearing the "Full Drag" option in the Desktop dialog box of the Control Panel.

In Microsoft Windows 95, the behavior can be eliminated by unchecking the Show window contents while dragging item in the Plus! tab of the Display Properties dialog. The Display Properties dialog can be viewed by right- clicking on the Windows 95 desktop and selecting 'Properties'. This setting can also be controlled programmatically by the SystemParametersInfo API and the SPI_GETDRAGFULLWINDOWS and SPI_SETDRAGFULLWINDOWS constants. For more information, see your Windows API documentation.

MORE INFORMATION

Steps to Reproduce Problem

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

  2. Add a Data control, "Data1" by default, to Form1 and set the following properties:

    DataBaseName = BIBLIO.MDB RecordSource = Authors

  3. Add a DBCombo control to Form1, "DBCombo1" by default, and set the following properties:

    RowSource = Data1 ListField = Author Style = 0 - Drop-down Combo or 2 - Drop-down List

  4. On the Run menu, click Start or press the F5 key to start the program. Open the DBCombo list box and then drag the Form1 form. Note that the list separates from the DBCombo control.


KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsStd
Additional reference words: 4.00 buglist4.00 vb4win vb4all


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 14, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.