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



The information in this article applies to:

  • Microsoft Visual C++ .NET (2003)

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 "Applies to" section.

MORE INFORMATION

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.
  6. In the Add Reference dialog box, click the COM tab, and then locate Microsoft Masked Edit Control 6.0 in the list of components.
  7. Click Select, and then click OK.
  8. Right-click the Toolbox, and then click Add/Remove Items.

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

    The Microsoft Masked Edit Control, version 6.0 control is added to the Windows Forms tab of the Toolbox.
  11. 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.
  12. On the Build menu, click Clean Solution.
  13. On the File menu, click Save All.
  14. On the File menu, click Close Solution.
  15. Reopen the solution. Notice that the IDE does not display the ActiveX control on the form.

Modification Type:MinorLast Reviewed:1/18/2006
Keywords:kbDesigner kbCtrl kbControl kbtshoot kbWindowsForms kbIDEProject kbbug KB833899 kbAudDeveloper