This occurs when you try to change a User Control's Public property to True when the User Control is not in an ActiveX control project. Either change the Project Type on the General Tab of the Project Properties dialog to ActiveX control, or don't set the User Control's Public property to True.