Results 1 to 4 of 4

Thread: Counting all forms in the project

  1. #1

    Thread Starter
    New Member nislm's Avatar
    Join Date
    Oct 2002
    Location
    Bangladesh
    Posts
    10

    Question Counting all forms in the project

    I want to get the the name of all forms in the project. One way of doing this is to get all the objects from the project file. But the problem is "IT HAS TO BE A VB PROJECT FILE". Another way is to get the form count. But it returns only the forms that loaded. I want to get the names of all loaded and unloaded forms.

    I wish someone can help me out......


  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    nislm

    This will count the loaded forms.

    VB Code:
    1. dim frm as Form
    2.  
    3. For Each frm in Forms
    4.    Msgbox frm.Name
    5. Next

  3. #3

    Thread Starter
    New Member nislm's Avatar
    Join Date
    Oct 2002
    Location
    Bangladesh
    Posts
    10
    this code displays the name of the forms that are loaded only.... I want to get the names of the forms that are in the project but not loaded at runtime.....

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    this question has been asked over and over and over again... you can only know the (not loaded) forms if you read the project file.

    for that, either distribute a copy of the file with the executable of the project, or store the information somewhere (database/resource file etc).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width