Microsoft KB Archive/177359

= PRB: Data Control Does Not Work on MDI Forms =

Article ID: 177359

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q177359



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
 Start Visual Basic and create a new Standard EXE. Form1 is created by default. From the Project menu, select Add MDI Form.  Add a Data control to MDIForm1 and set the following properties: DatabaseName = "C:\Program Files\DevStudio\VB\Biblio.mdb" RecordSource = "Authors"  From the Project menu, select Project Properties, and change the Startup Object to MDIForm1. Run the project and note that the Data control is not functional.

<div class="references_section">