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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:14:29+00:00 2026-05-28T02:14:29+00:00

I have (what should be) a very simple Windows Forms application. There is a

  • 0

I have (what should be) a very simple Windows Forms application. There is a “Main” form that is a bunch of data input with a Submit button. When the user presses Submit, I want to display a second form that is a very basic form with only a label on it saying something like, “Please wait…”. I created the second form, and in the Submit button’s Click() I do this:

Form2 f2 = new Form2();
f2.Show();
System.Threading.Thread.Sleep(3000);
f2.Hide();

Form2’s ctor:

public Form2()
{
  InitializeComponent();
  this.Text = "Form2 that is useless";
}

What I see is the Form2, but where the label should be, I only see the outline of it as a white reactangle with no text. Text foreground and background colors check out (black foreground on “Control” colored background.

I am pulling my hair out here trying to determine why a simple form added with no property changes will not display controls properly. I added a button control and a picture box control and got the same results. the control’s outline shows up, but the contents do not.

Help?

  • 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-28T02:14:30+00:00Added an answer on May 28, 2026 at 2:14 am

    Add:

    Shown += new EventHandler(Form2_Shown);
    

    to Form2’s ctor. And:

    void Form2_Shown(object sender, EventArgs e)
    {
        Update();
    }
    

    In its class.

    EDIT:
    This doesn’t work. Probably because the Sleep is executed before the Shown event handler. The solution is to add a:

    f2.Update();
    

    before the Sleep, instead of the previous solution.

    This time I tried it. It works.

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

Sidebar

Related Questions

I have a very simple python script that should scan a text file, which
In my windows forms project I have a parent form that is creates other
Im playing about with some very simple windows forms. I have an event handler
I want to create a very simple javascript form validation. I have two input
I am building a very simple asp.net application that will have a SQL Server
I have written a very simple control. C# Visual Studio 2008. Its output should
I have a very thin interface that's going to define one method. Should I
I have a very simple WPF user control that is mixed in with a
I have an ASP.Net MVC Page with a very simple form on it: One
I have written a pretty simple Windows service in C# that starts up automatically

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.