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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:13:35+00:00 2026-05-23T07:13:35+00:00

I am a newbiest in c# and window form i am doing a project

  • 0

I am a newbiest in c# and window form
i am doing a project and i meet some problem

  1. how can i navigate forms within the window( i have a menu strip, when click it will show a item “Brand”, so when i click it, it should open up within the window , i don’t want something using the mdiparent/container, i have form1 and form2, then i put the menu strip in form1, which there is some thing inside form1, if use the mdiparent/container, the form1 content/thing will block the form2 )

2.i use the below code and the problem is i want to close the form1 which i click on ” Brand” in the menu strip…but how???

public partial class Form1 : Form
{
    //  i put the menu strip in form1 design
    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
    }

    private void Check_Click(object sender, EventArgs e)
    {
        Form2 Check = new Form2();
        Check.Show();
    }
}
  • 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-23T07:13:36+00:00Added an answer on May 23, 2026 at 7:13 am

    You cannot just close the Form1 as it is the main form, but you can hide it. Use this.Hide().

    private void Check_Click(object sender, EventArgs e)
    {
        Form2 Check= new Form2();
        Check.Show();
        Hide();
    }
    

    [EDIT]

    Not sure if this is what is asked. But…

    There are many ways to implement navigation between forms, for example:

    In Form1:

    private void button1_Click(object sender, EventArgs e)
    {
        Form2 form2 = new Form2();
        form2.Tag = this;
        form2.Show(this);
        Hide();
    }
    

    In Form2:

    private void button1_Click(object sender, EventArgs e)
    {
        var form1 = (Form1)Tag;
        form1.Show();
        Close();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone tell me of a good C++ library for handling (doing operations etc...)
I have been caught out by what appears to be a common enough problem
I have spent lot of time doing research on VIM. I am Windows guy
Thanks to everyone out there helping newbies like me. So far I have this:
I have recently become a teaching assistant for a university course which primarily teaches
Duplicate: Learning implementing design patterns for newbies I have been a developer for years
I can't find any tutorials for newbies. Aren't there any simple rules for using
I need some help to complete my idea about regexes. Introduction There was a
It seems only the casbah we can use in scala, but I hope there
I am new to STL. I have written a Template Base class as follows

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.