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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:29:05+00:00 2026-06-08T12:29:05+00:00

I have a form in Visual Studio 2010 that consists of a listbox and

  • 0

I have a form in Visual Studio 2010 that consists of a listbox and multple frames.

The Frames are all put on top of each other, with the listbox above the frames. The process that I am trying to accomplish is that depending on which report you pick in the lisbox, a certain frame will appear, and only that frame.

I have the following code to accomplish this:

switch (Convert.ToInt32(item.Value))
{

    case 11: 
        fraSelect_2.Hide();
        fraSelect_3.Hide();
        fraSelect_4.Hide();

        fraSelect_1.Visible = true;

        iCounter = 1;
        break;

    case 12: 
        fraSelect_1.Hide();
        fraSelect_3.Hide();
        fraSelect_4.Hide();

        fraSelect_2.Visible = true;           

        iCounter = 2;
        break;

}

And so on for each case. The problem that I am having is that if the frame I am calling is underneath a different frame (that is not visible) it won’t show. Although when I select the report corresponding to the top form it will work. So if report1 = frame1 when I select report1 I can see frame1. But if I select report2 I get nothing because frame2 is behind a non visible frame1.

Any idea on how I can get the frames behind frame1 to show once the corresponding report is selected?

  • 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-08T12:29:06+00:00Added an answer on June 8, 2026 at 12:29 pm

    In design mode put each groupbox in a separate Location and check that they are not contained in another groupbox. Leave one groupbox in the desidered position with the required size.

    Then in the Load event of your form reposition every groupbox at the same location of the one used as placeholder.

       fraSelect_2.Location = fraSelect_1.Location;
       fraSelect_2.Size = fraSelect_1.Size;
       ... // move every other groupbox to the same spot....
    

    then simply setting Visible=true/false (no Hide() or BringToFront()) should be enough to show the correct one.

    The problem is caused by the fact that when you drop the groupbox on the top of another groupbox, the last one, becomes a child of the first and if the top level group box is hidden then all of its childs are automatically hidden by Windows and you can’t make them visible in any way.

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

Sidebar

Related Questions

I have a created a visual studio 2010 project that creates a windows form
in C# 4.0 (Visual Studio 2010), i have a Windows Form DataGridView that must
JI have written a .NET C# Windows Form app in Visual Studio 2008 that
I have one windows form file that each time I open it in Visual
I am coding in C# using Visual Studio 2010 and have a form whereby
Here is my scenario: I have a windows form designed in Visual Studio 2010.
I have a form program I wrote in Visual Studio 2010. In the program
I'm making an C# windows Form Application in visual studio 2010. That application is
I have two separate websites in visual-studio-2010. first of all I want to know
I'm using visual studio 2010 and vb.net. On my form I have an Group

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.