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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:01:44+00:00 2026-06-14T13:01:44+00:00

EDIT I’ve found and posted the solution. I am trying to make an installer

  • 0

EDIT
I’ve found and posted the solution.

I am trying to make an installer for my application and I am trying to do that with panels (I don’t know if this is a good way of doing it, but this gives me more customization options instead of using the install shield program). What would be the best way to do this?
This is the code I have right know:

C# Code

foreach (var c in Controls)
{
    if (!(c is Panel)) continue;
    if (c.Name == "pnlBottom") continue;
        
    c.Visible = c.Name.Contains(_currentPanel.ToString());
    
    if (c.Visible) return;
}
  • 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-14T13:01:45+00:00Added an answer on June 14, 2026 at 1:01 pm

    Try this, it changes the Visibility of a single Panel:

    private void PanelVisible(string panelName, bool visible)
    {
        var panel = this.Controls.OfType<Panel>().FirstOrDefault(p => p.Name == panelName);
        if (panel != default(Panel)) panel.Visible = visible;
    }
    

    If you want to make all Invisible, but one:

    private void PanelVisible(string panelName)
    {
        foreach(var panel in this.Controls.OfType<Panel>().Where(p=>p.Name!="pnlBottom"))
        {
            panel.Visible = panel.Name == panelName;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT : It turned out that this can only be done through an external
EDIT I don't know is it important, but destination triangle angles may be different
EDIT: for those who come here with a similar problem, now i know this
Edit: I think I figured out the solution, but I'm still interested to know
Edit: I'm looking for solution for this question now also with other programming languages.
EDIT: This was formerly more explicitly titled: - Best solution to stop Kontiki's KHOST.EXE
Edit: This was accidentally posted twice. Original: VB.NET Importing Classes I've seen some code
EDIT: Sorry, I should've searched more before I asked, because I've found a solution
Edit: to clarify - i just found out that it is really easy to
EDIT: As soon as I posted this, I received a notification about a new

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.