MainClass Property
Contains the name of an ActiveDoc class set as the main program in a project. Read-only.
Object.MainClass
Remarks
An ActiveDoc class can be set as the main program in a project by right-clicking the ActiveDoc class and choosing Set Main from the shortcut menu. Only classes based on the ActiveDoc base class can be set as the main program. (A program or form can also be set as the main program.) Use the MainFile property to determine the .vcx visual class library that contains the ActiveDoc class set as the main program.
MainClass contains the empty string if the main program is not set to an ActiveDoc class.
Use the SetMain method to change the main file and main class.
See Also
MainFile Property | SetMain Method
Applies To: Project Object