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 836807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:02:35+00:00 2026-05-15T05:02:35+00:00

Happy Friday SO! I’m building a multi-WinForm application and am having some troubles. I

  • 0

Happy Friday SO!
I’m building a multi-WinForm application and am having some troubles.

I have a main WinForm that stays open at all times. It hits a database every minute looking for changes, and if there is a change, it will open the second WinForm (this may seem like a stupid way to do things, but for my purpose, this is the best method).

Just sticking the following code into my Form1.cs doesn’t do the trick:

Application.Run(new Form2());

Can you guys point me in the right direction? I have no idea where to turn.

  • 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-15T05:02:36+00:00Added an answer on May 15, 2026 at 5:02 am
    Form2 form2 = new Form2();
    form2.Show();
    

    and to prevent a ton of forms being opened, maybe:

    Form2 form2 = new Form2();
    form2.ShowDialog();
    

    @Comment:

    A BackgroundWorker is used to keep your current UI Thread responsive. It was not designed to keep multiple forms pumping happily along. Look into running your intensive code as a Background thread within a ThreadPool.

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

Sidebar

Related Questions

Happy Friday All, I have an ASP.net 2.0 website that I'm updating to .Net
Happy Friday. Having an interesting time debugging a zombie issue. I have a UITableView
I'm very happy of Netbeans 6.5 diff tool, I have to ask some questions
I was happy to cobble some code together that gives me a nice looking
Happy Friday to all. I was wondering if there is a way to open
Happy new year :) I have a Chrome extension which is a popup that
I am using Happy to generate a parser. I have found that when I
Happy New Year. I have a bunch of SOAP Web Services. They all have
Happy new year to you all! I am plotting some graphs and would like
Happy Friday — Does anyone know if eclipse has the notion of smart quotes

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.