dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: VB6 Grouping Of Projects

  1. #1
    Join Date
    Jun 2005
    Location
    INDIA
    Posts
    13

    Question VB6 Grouping Of Projects

    I have been develpoing many projects, in Vb with Multiple forms
    Each of the project has a unique name
    I am in a process of puting all the modules together

    The Problem
    Unable to group all the projects together and make it a single EXE

    Issues Faced : Unable to call froms of another project

    project1 - set as the active project
    form1
    form2
    form3
    project2
    form1
    form2
    form3

    In project1 form1 I would like to activate and call the form2 from project2
    and move back control to project1 form 1

    The projects are all added in a common group

    GURU's Please advise how this can be done
    Last edited by Rambi; June 21st, 2005 at 12:39 PM. Reason: Wanted to post some more information

  2. #2
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: VB6 Grouping Of Projects

    You can't really do that. Even in a project group, each project is separated from the others. What you can do tho is to add a new form to project 1, choose "Select existing" and add the project2 form2 into the project1. So the form2 will be listed two times in the whole project group, but it will be the same form used, so any modification will be taken into account in both project

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  3. #3
    Join Date
    Jan 2004
    Location
    San Diego
    Posts
    148

    Re: VB6 Grouping Of Projects

    Instead of trying to group the projects you should group the forms, modules, etc. you will use into a single project. For example, let's say you have the following projects with forms and modules (the bold names are what you will use in your final project):

    project1
    • form1
    • form2
    • form3
    • module1
    • module2
    • module3

    project2
    • form1
    • form2
    • module1
    • module2

    project3
    • form1
    • form2
    • form3
    • form4
    • form5
    • form6

    Create a new project and add all of the forms and modules into it you may need to to some additional programming to insure all of the forms and modules work together but it will be easier than trying to link all of your projects together in a project group. You will also need to rename some forms and modules so there aren't any conflicts. Your new project listing might look something like the following:

    final_project
    • form1 (from project1/form1)
    • form2 (project1/form2)
    • form3 (project2/form2)
    • form4 (project3/form2)
    • form5 (project3/form3)
    • form6 (project3/form4)
    • form7 (project3/form6)
    • module1 (project1/module1)
    • module2 (project1/module2)
    • module3 (project1/module3)
    • module4 (project2/module2)


    And now I see JeffB beat me to saying the same thing.
    Last edited by NatThoelecke; June 21st, 2005 at 01:23 PM. Reason: JeffB beat me to the response :)
    Death is life's special way of telling you you're fired.

    For I do not seek to understand in order to believe, but I believe in order to understand. For I believe this: unless I believe, I will not understand. - Anselm of Canterbury (1033–1109)

  4. #4
    Join Date
    Jun 2005
    Location
    INDIA
    Posts
    13

    Thumbs up Re: VB6 Grouping Of Projects

    thanks NatThoelecke and JeffB

    Your suggestion did work , and the business soultion that we were working got completed AUG end , the business product got launched yesteday 9th Sep , the project has totaly around 300 forms now seems to be working well
    Thanks for the help and suggestions

  5. #5
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: VB6 Grouping Of Projects

    Nice, you're welcome

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  6. #6
    Join Date
    Jan 2004
    Location
    San Diego
    Posts
    148

    Re: VB6 Grouping Of Projects

    Always happy to help.
    Death is life's special way of telling you you're fired.

    For I do not seek to understand in order to believe, but I believe in order to understand. For I believe this: unless I believe, I will not understand. - Anselm of Canterbury (1033–1109)

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)