Microsoft KB Archive/833899

= BUG: ActiveX controls do not appear in the Visual Studio .NET IDE after you clean and then reopen a solution =

Article ID: 833899

Article Last Modified on 1/18/2006

-

APPLIES TO


 * Microsoft Visual C++ .NET 2003 Standard Edition

-





SYMPTOMS
Although you can see an ActiveX control at design time in a Microsoft .NET Windows Forms application, the Microsoft Visual Studio .NET IDE does not display the ActiveX control on the Windows form after you clean, close, and then reopen the solution.



CAUSE
When you add a reference to an ActiveX control, the IDE generates wrapper DLLs and puts the wrapper DLLs in the output folder. However, when you perform the Clean Solution operation, the IDE deletes all the contents of output folder. When you close and then reopen the solution, the IDE does not find any DLLs in the output folder, and the IDE does not display the ActiveX control on the form in the design mode.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the behavior

 * 1) Start Microsoft Visual Studio .NET.
 * 2) On the File menu, point to New, and then click Project.
 * 3) Click Visual C++ Projects under Project Types, and then click Windows Forms Application (.NET) under Templates.
 * 4) In the Name text box, type TestApplication, and then click OK.
 * 5) In Solution Explorer, right-click the project, and then click Add Reference.

The Add Reference dialog box appears.
 * 1) In the Add Reference dialog box, click the COM tab, and then locate Microsoft Masked Edit Control 6.0 in the list of components.
 * 2) Click Select, and then click OK.
 * 3) Right-click the Toolbox, and then click Add/Remove Items.

The Customize Toolbox dialog box appears.
 * 1) In the Customize Toolbox dialog box, click COM Component tab, and then click to select Microsoft Masked Edit Control, version 6.0.
 * 2) Click OK.

The Microsoft Masked Edit Control, version 6.0 control is added to the Windows Forms tab of the Toolbox.
 * 1) Add a Microsoft Masked Edit Control, version 6.0 control to the Form1 form.

You will see the ActiveX control on the form at design time.
 * 1) On the Build menu, click Clean Solution.
 * 2) On the File menu, click Save All.
 * 3) On the File menu, click Close Solution.
 * 4) Reopen the solution. Notice that the IDE does not display the ActiveX control on the form.

Keywords: kbtshoot kbbug kbwindowsforms kbdesigner kbctrl kbideproject kbcontrol KB833899

-

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

© Microsoft Corporation. All rights reserved.