Microsoft KB Archive/184298

= PRB: Project Containing UserConnection & WithEvents Crashes VB =

Article ID: 184298

Article Last Modified on 8/27/1999

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q184298



SYMPTOMS
Creating a project that uses the WITHEVENTS clause and a UserConnection object causes Visual Basic IDE to crash if the Object box in the Code window is accessed.



RESOLUTION
There is no known workaround.



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



Steps to Reproduce Behavior
 Start Visual Basic and create a new project. From the Project menu choose References and select "Microsoft Remote Data Objects 2.0" from the References dialog box. From the Project menu choose Components. In the Components dialog box click the Designers tab and select "Microsoft UserConnection". From the Project menu choose "Add ActiveX Designer" and then select "Microsoft UserConnection". Leave everything as default EXCEPT the Datasouce and Security information. Provide whatever is needed to access your SQL Server. Click the Insert Query button on the UserConnection Designer and save it as is. It is not necessary to change anything.</li> Save the Userconnection, project, and the form.</li>  In the Code window in the General Declarations type the following line of code: DIM WITHEVENTS rs AS rdo.RDOconnection </li> Save the Project and restart Visual Basic.</li> Reopen the project.</li> From the View menu, select Project Explorer.</li> Select the form in the Project Explorer, and open the Code window for the form.</li> Now try to select an Object from the Object combo box in the upper left corner of the code window.</li></ol>

Keywords: kbprb KB184298

-

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

© Microsoft Corporation. All rights reserved.