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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:33:48+00:00 2026-05-23T05:33:48+00:00

I am learning windows forms and can create a one form with textboxes and

  • 0

I am learning windows forms and can create a one form with textboxes and stuff, but I was wondering how can I change the form upon let’s say clicking a button?, so for instance my initial form has a textbox and a button, if the button is clicked I want to show a form with a dropdown and a button. SO the question should be:

1) How do I change the form upon clicking a button but without creating a new instance of the form.

2) If I wanted, how can I add a form when the button is clicked showing the same drop down and button as a pop up form?

In reality I would like to know both cases, changing the form via using the same form and via popping a new form on top.

Should the questions not be clear, I am willing to further explain

Thank you

  • 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-23T05:33:49+00:00Added an answer on May 23, 2026 at 5:33 am

    I’m assuming you already know how to add controls in the form designer and how to implement event handlers.

    Question 1

    private void button1_Click(object sender, EventArgs e)
    {
        if (comboBox1.Visible)
        {
            comboBox1.Visible = false;
            textBox1.Visible = true;
        }
        else
        {
            comboBox1.Visible = true;
            textBox1.Visible = false;
        }
    }
    

    The button click handler simply toggles the visibility of the two controls.

    Question 2

    private void button2_Click(object sender, EventArgs e)
    {
        Form1 form = new Form1();
        form.ShowDialog();
    }
    

    This time the button handler instantiates a new form an then shows it as a modal dialog. Call Show() if you don’t want to show modally.

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

Sidebar

Related Questions

Where can I start learning Windows Form designing? For example: Microsoft Zune player, Buttons,
Is there a learning curve? I want to pick up Windows Form but when
Can you recommend any resources for learning about Windows Installer? The best book I've
I'm learning Windows Forms and I'm stuck when working with Windows Forms and Classes.
I'm a beginner learning Windows Forms Applications in C# and I want to write
I am learning how to develop Windows Forms applications with Visual Basic Express 2008,
I am working on learning Windows Forms with C# and have a bare bones
I was wondering what are the pain points for other developers when learning Windows
I am very interested in learning windows shell programming. So...I searched for books on
I'm developing a game for windows for learning purposes (I'm learning DirectX). I would

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.