Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Collection
Message
De
22/08/2001 17:59:20
 
 
À
22/08/2001 09:54:40
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00547223
Message ID:
00547670
Vues:
7
>The Forms collection will contain all the loaded forms within the project. but how to get the names of other forms within the project which is not loaded
>
>Any Idea Please?

You can do this with a VB add-in project. Basically you would use the VBProjects, VBComponents collection (VB Extensibility model) and the VBProject and VBComponent objects.

In your add-in code, you would put something like:
   For Each vbProject In VBInstance.VBProjects
      For Each vbComponent In vbProject.VBComponents
         Debug.Print vbComponent.Name, vbComponent.Type
      Next vbComponent
   Next vbProject
For more information, read the "Roll your own Add-ins" article in your MSDN library CD.
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform