Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

VB .NET - Learn Visual Basic .NET

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 12

The Class Module Name Property

Your class module's Name property is important because it is the name that controller code will use when it instantiates a copy of your class as an object. You can change the class name from the Project Explorer by following these steps:

  • In Project Explorer, right-click the name of the class module to bring up the pop-up menu for this class module (see Figure 12.2).

    The pop-up menu of the class module
    FIGURE 12.2. The pop-up menu of the class module

  • Choose the Properties option from the pop-up menu. The only property listed is the Name property, and you can change it here (see Figure 12.3).

    The properties dialog box of a class module in a standard EXE project.
    FIGURE 12.3. The properties dialog box of a class module in a standard EXE project.

NOTE - Changing the Name of a Class That Is Already in Use: Be careful when you change the name of a class that is already in use, because controller code depends on the name of the class to instantiate objects.


  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved