PRB: Data Control Does Not Work on MDI Forms

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

SYMPTOMS

Although the Help files clearly indicate that the Data control can be used on MDI forms, the Data control simply does not function when placed on MDI forms.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

In earlier version of Visual Basic, the Data control was used on MDI forms by placing it on the PictureBox control. In Visual Basic 5.0, the Align property has been added to the Data control so that the PictureBox is no longer required. However, the Data control does not function on MDI forms regardless of whether the PictureBox control is used or not.

Steps to Reproduce Behavior

  1. Start Visual Basic and create a new Standard EXE. Form1 is created by default.

  2. From the Project menu, select Add MDI Form.

  3. Add a Data control to MDIForm1 and set the following properties:

    DatabaseName = "C:\Program Files\DevStudio\VB\Biblio.mdb" RecordSource = "Authors"

  4. From the Project menu, select Project Properties, and change the Startup Object to MDIForm1.

  5. Run the project and note that the Data control is not functional.

REFERENCES

The following text regarding the Align property of the Data control is from the Visual Basic Reference Help file:

   "This property allows a Data control to be placed on an MDI form without
   requiring an enclosing Picture control."

For more information, search for "Data control" in the Visual Basic Reference or Visual Basic Books Online.
Keywords          : vb5all VBKBCtrl VBKBVB
Version           : WINDOWS:5.0
Platform          : WINDOWS
Issue type        : kbprb
Solution Type     : kbpending


================================================================================


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