Microsoft KB Archive/175600

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


Article ID: 175600

Article Last Modified on 7/1/2004



APPLIES TO

  • 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

SUMMARY

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:

   Project1.UserDocument1

   Project1.UserControl1
                

This article demonstrates how to give your ActiveX Object a friendly name, such as "My ActiveX Control."

MORE INFORMATION

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.

Step-by-Step Example

  1. Open the ActiveX Project in which the document or control exists.
  2. Open the Object Browser by choosing Object Browser from the View menu or by pressing the F2 key.
  3. Locate your Project name in the drop-down list of available libraries.
  4. Next, locate the ActiveX Document or ActiveX Control under the heading of 'Classes.'
  5. Right-click the ActiveX Document or ActiveX Control in the list of Classes, and then choose Properties from the short cut menu.
  6. 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