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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:38:09+00:00 2026-06-18T01:38:09+00:00

I have a main form, which opens form A, where from form A I

  • 0

I have a main form, which opens form A, where from form A I can open form B, where from form B I can open form C. The problem is that if I open till form B, everything works fine, but if I open form C as well, and then close Form C and B, form A goes behind the main form. For the forms I m just creating an instance of the form and then use .Show()

cNewForm form = new cNewForm();
form.Show();

I m doing this for every form

  • 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-18T01:38:10+00:00Added an answer on June 18, 2026 at 1:38 am

    You have not set the window ownership properly because you are using the no parameter version of Show(). You need to set the owner by calling the Show() overload that receives an owner parameter. Alternatively you can set the Owner property directly, but it’s much better to do so when you call Show().

    The window owner is an important Win32 concept. I recommend reading the MSDN documentation on the subject.

    • An owned window is always above its owner in the z-order.
    • The system automatically destroys an owned window when its owner is destroyed.
    • An owned window is hidden when its owner is minimized.

    In your case I think you want form A to be owned by your main form, and form B to be owned by form A, and form C to be owned by form B.

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

Sidebar

Related Questions

I have a main class(which is basically a netbeans form;drag and drop) from where
I have a windows form application that will open other forms, but will only
Basically I have a main form which upon loading, opens a child form for
I have made a class which a form can inherit from and it handles
I have a C# windows application which does the following: 1) the main form
I have a login form, which needs to be re-directed to the main page
I have a form MainForm which is a Windows Forms form that contains many
I have a form, MainForm, which was working just fine and dandy until earlier
I have a Main form.I want to launch another form from it and launch
I have a main form, and a floating child form that is non-modal. The

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.