Results 1 to 6 of 6

Thread: [RESOLVED] Project Size!

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Resolved [RESOLVED] Project Size!

    Just a question of inquisitiveness.........

    My web browser app uses 25 Forms, 13 Modules, 1 Class Module & 1 Resource File. Excluding the Resource File, the size of these different files range from 3KB to 220KB but the size of the Project is only 3.35KB! How come?

    The size of the Resource File alone is 0.99MB.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Project Size!

    By "the project" I presume you mean the VBP file, which is just a text file that has a list of things like the files and references for the project - as such the size of it is only determined by the number of files & references etc (as each one is 'written' in the VBP file).

  3. #3
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Project Size!

    If you open the project file in a text editor (notepad), you will know the reason
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Project Size!

    If you check the size of your Forms *.frx files and add them all up. These files contain any graphics in that Form. Then you will have the total exe size plus the resource file size.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  5. #5

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Project Size!

    Thanks all 3 of you

    BTW. whenever I open the VBP file, I always find that the first object that shows up is a module & not the main Form which houses the web browser control which I used to find a trifle irritating but after going through Pradeep's answer, when I opened the VBP file in a text editor, I realized the reason behind this. Now that I have taken care of that, the VBP file always opens up with the main Form.....


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  6. #6
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Project Size!

    Quote Originally Posted by arpan_de
    BTW. whenever I open the VBP file, I always find that the first object that shows up is a module & not the main Form which houses the web browser control
    No the reason for that is the data saved in the *.vbw (Visual Basic Project Workspace) file. If you delete this file and open you project again you will see that no Form or Module will have default. But you will find that when you close the project the last Form or Module used will be the default next time.

    I honestly can't see the need for these *.vbw files.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

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