PRB: Can't Remove Controls from the Controls Toolbar in VC++
Article ID: 199873
Article Last Modified on 12/1/2003
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q199873
SYMPTOMS
When you add an ActiveX control to your resources in Visual C++, it appears in the Controls Toolbar of the resource editor. The resource editor does not provide any method to remove the control if it is no longer needed.
CAUSE
The reference to the control is stored in the workspace (.dsw) file. There are no provisions in the resource editor for removing this reference once it is stored.
RESOLUTION
Steps to Remove the Control
- Rename the project's associated workspace file (.dsw). A workspace may contain one or more projects. By renaming it, you lose the dependency information between your projects.
- Open the project file (.dsp). (If you have multiple projects in a workspace, then you can open any project file.)
A clean .dsw file will automatically be created. All added controls will be removed from the control toolbar.
NOTE: Any subprojects will have to be added back again to the workspace, and their dependencies will need to be reconstructed.
Additional query words: kbDSupport
Keywords: kbbug kbide kbprb KB199873