Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:38:03+00:00 2026-06-13T14:38:03+00:00

I created 3 different (but sharing same database connection) Windows Forms applications. Each such

  • 0

I created 3 different (but sharing same database connection) Windows Forms applications. Each such application is very simple and consists of a single form only.

Assuming I have 3 forms: Form1, Form2 and Form3, I now want to define Form1 is the main form (and only application), and invoke Form2 and Form3 from within Form1, as part of the Form1 application, not as independent applications. Something similar to:

private void btnForm2_Click(object sender, EventArgs e)
{
    Form2 form2 = new Form2();
    form2.Show();
}

private void btnForm3_Click(object sender, EventArgs e)
{
    Form3 form3 = new Form3();
    form3.Show();
}

While that seems simple, I am confused as to how to import Form2 and Form3 to the Form1 project without compromising the integrity of what VS 2010 already did “automagically”.

That is, I believe that it’s not only the Form2.cs file that I need to drag and drop into the Form1 project, but other files as well, such as Form2.Designer.cs, Form2.resx and… more?

Do I need to copy the files under the project’s Properties and References too?

What are the steps required to methodically convert the three projects into one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:38:04+00:00Added an answer on June 13, 2026 at 2:38 pm

    From your solution “Form1” you can import other project into it.

    (Right-Click on solution: Add > Existing Project)

    So now you will have:

    - MySolution
        - Project: Form1
        - Project: Form2
        - Project: Form3
    

    You will have to setup the build order and the build dependency between projects.

    Another way to do it, is to manually copy the files from one project to the other and add them to your project. And yes, you need all the files that VS created. (resx, .Designer.cs, etc) Just copy and drop the whole package in a folder of your project.

    And no, you don’t need to touch Properties or Reference, unless one of the two other project had different references. It should be easy to track, because the file you copy will have error in the “using xxx” part of the files. You just need to add the correct references.

    (Right-Click on project: Add > Existing Items)

    Since your project doesn’t look huge, I would go with solution two.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a drawing using different paths, but how can I move the entire
I created buttons using a for loop with different tags in objective c, but
I am currently working on grails project. I have created eight different plugins. Each
I have created different node forms for different content types, by using this function
I am trying to read a logfile in two different applications at the same
I have many tables with identical schemas but different names. Can I create a
I would like to create a library, say foolib, but to keep different subpackages
I've created 2 different directories on my website as follow my_site.com/boo and my_site.com/koo and
I have a SQL Server table which has 625 columns created with different datatypes
Is there any way to differentiate the child processes created by different fork() functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.