PRB: Project Containing UserConnection & WithEvents Crashes VB
ID: Q184298
|
The information in this article applies to:
-
Microsoft Visual Basic Enterprise Edition for Windows, version 5.0
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.
MORE INFORMATION
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.
- Save the Userconnection, project, and the form.
- In the Code window in the General Declarations type the following line
of code:
DIM WITHEVENTS rs AS rdo.RDOconnection
- Save the Project and restart Visual Basic.
- Reopen the project.
- From the View menu, select Project Explorer.
- Select the form in the Project Explorer, and open the Code window for
the form.
- Now try to select an Object from the Object combo box in the upper left
corner of the code window.
Additional query words:
Keywords :
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type : kbprb