Microsoft KB Archive/175600
Article ID: 175600
Article Last Modified on 7/1/2004
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q175600
When attempting to place an ActiveX Document or ActiveX Control created in Microsoft Visual Basic into another application (such as Microsoft Office Binder or another Visual Basic project), the object name will be displayed as one of the following:
<ActiveX Project Name>.<Document Name> <ActiveX Project Name>.<Class Name>
or, as one of the following:
This article demonstrates how to give your ActiveX Object a friendly name, such as "My ActiveX Control."
In order to give your ActiveX Document or ActiveX Control a friendly name, you must modify the Description property of your class. The example below describes how to modify the Description property for ActiveX Documents or ActiveX Controls.
- Open the ActiveX Project in which the document or control exists.
- Open the Object Browser by choosing Object Browser from the View menu or by pressing the F2 key.
- Locate your Project name in the drop-down list of available libraries.
- Next, locate the ActiveX Document or ActiveX Control under the heading of 'Classes.'
- Right-click the ActiveX Document or ActiveX Control in the list of Classes, and then choose Properties from the short cut menu.
- Modify the Description property to give your ActiveX Document or Control a friendly name.
To complete the process, compile your ActiveX project. Once the project is compiled, if you attempt to place your ActiveX Object into another application, you will see the new friendly name associated with your object. For example, in Microsoft Access with a form in design mode by choosing ActiveX Control from the Insert menu, you should see the friendly name you chose in step 6 above.
Keywords: kbhowto KB175600