DOCUMENT:Q175600 24-OCT-1997 [vbwin] TITLE :HOWTO: Give Your ActiveX Component a Friendly Name PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:vb5all vb5howto ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0 --------------------------------------------------------------------- SUMMARY ======= When attempting to place an ActiveX Document or ActiveX Control created in Microsoft Visual Basic 5 into another application (such as Microsoft Office Binder or another Visual Basic 5 project), the object name will be displayed as: . -or- . or as: Project1.UserDocument1 -or- 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 : vb5all vb5howto Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbhowto ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1997.