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

  • Home
  • SEARCH
  • 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 6626435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:53:31+00:00 2026-05-25T21:53:31+00:00

I am new to win forms (C#). The current form that I’m making has

  • 0

I am new to win forms (C#). The current form that I’m making has the option to create a new (blank) instance of itself, but if I ever close that first instance, all the others close as well. This is not what I want to happen. (Closing any form opened up from the first doesn’t close any others, though)

I was thinking it may be because I am creating a new copy from within one of the copies/objects, so it is tied to that first object so it closes when it does; however, if I open up another form from the one opened from the first one and then close that one that was opened from the first one, the one that I opened up from it doesn’t close.

I want it so that I can still close that first form without the others closing, and that when the last one closes, the program stops running.

Is there any way to do this?

  • 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-05-25T21:53:32+00:00Added an answer on May 25, 2026 at 9:53 pm

    You can run as many forms as you need but each in the separate thread

    using System;
    using System.Threading;
    using System.Windows.Forms;
    
    public partial class MyForm: Form
    {
        public MyForm()
        {
            InitializeComponent();
        }
    
        private void Button1Click(object sender, EventArgs e)
        {
            var t = new Thread(() => Application.Run(new MyForm()));
            t.Start();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm totally new to Win Forms. I see that the vertical scroll bar on
I have written a c# win forms application that allows the user to open
I am using a DataGridView in a Win Forms app that is bound to
I am wanting to create an application in winforms that calls a new WCF
I have a win forms client that accesses a wcf service for a long
I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8
this isn't really an issue, but more of a concern that I would appreciate
I am creating a department picker form that is going to serve as a
Technologies: C#, .Net, Winforms I have a main form that pulls data from a
I'm planning on overriding OnFormClosing (of System.Windows.Forms.Form) to perform validation of the user input

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.