BUG: WBEM Namespace Picker Control Does Not Connect to WMI in Visual Basic IDE |
Q244604
The information in this article applies to:
- Windows Management Instrumentation, version 1.1
- Microsoft Visual Basic Learning Edition for Windows, version 6.0
- Microsoft Visual Basic Professional Edition for Windows, version 6.0
SYMPTOMS
When you use the WBEM Namespace Picker Control (WBEMNSPicker.ocx) on a Microsoft Visual Basic form in the Visual Basic IDE debug environment, pressing the Connect button fails to connect to Windows Management Instrumentation (WMI).
CAUSE
The current implementation of the WBEM Namespace Picker Control is incompatible with the Visual Basic IDE.
RESOLUTION
Although you cannot use the WBEM Namespace Picker Control when running in the Visual Basic IDE debug environment, the control functions properly from an EXE. Generate an EXE in order to use the control on a Visual Basic form.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Windows Management Instrumentation, version 1.1.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a Standard EXE project in Visual Basic.
- Include both the WBEM Login Control and the WBEM Namespace Picker Control ActiveX components.
- Add an instance of both of these components to a form.
- Add the following handler for the namespace picker control. In this code the login control is named Login1 and the namespace picker control is named NamespacePicker1.
- Run the program in the Visual Basic IDE debug environment.
- Click the computer icon to the right end of the namespace picker control.
- Click the Connect button in the Browse for Namespace dialog box. Nothing seems to happen.
To work around this problem:
- Generate an EXE for the preceding project.
- Run the EXE.
- Perform steps 6 - 7 in the preceding "Steps to Reproduce Behavior" section. A dialog box opens which prompts you for a username and password. This is the correct behavior.
REFERENCES
For more information, see the WMI SDK documentation in the Platform SDK.
Additional query words: wmi wbem VB namespace picker connect
Keywords : kbVBp kbWBEM kbWBEM100bug
Issue type : kbbug
Technology : kbWMISearch kbVBSearch kbAudDeveloper kbZNotKeyword6 kbZNotKeyword2 kbVB600Search kbVB600 kbWMI110
Last Reviewed: January 11, 2001 |