Microsoft KB Archive/240446

= BUG: Text Box and Data Control on a UserControl Closes UserControl in the IDE =

Article ID: 240446

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q240446



SYMPTOMS
A Standard EXE or UserControl form contains a second UserControl. The second UserControl contains a text box and a data control. You close all the forms and then open the second UserControl. When you attempt to change the DataSource property of the text box in the property window, the UserControl immediately closes or an application error occurs that causes Visual Basic to stop responding.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Start a new ActiveX control project in Visual Basic. UserControl1 is created by default.
 * 2) Add a second UserControl, UserControl2, to the project.
 * 3) Add a TextBox and a Data Control to UserControl2.
 * 4) Close the design window for UserControl2 and put a UserControl2 into UserControl1.
 * 5) Close all visible design windows.
 * 6) Open UserControl2 and select the TextBox.
 * 7) In the Property window, change the DataSource property to Data1. UserControl2 immediately closes or an application error occurs that causes Visual Basic to stop responding.

Additional query words: Container

Keywords: kbbug kbctrlcreate kbpending KB240446

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.