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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:33:29+00:00 2026-05-25T09:33:29+00:00

I am doing Windows Forms Application. When the user clicks a button I am

  • 0

I am doing Windows Forms Application. When the user clicks a button I am hiding the current page and navigating to another page.
// in the button click event

Vehicle_Registration ob = new Vehicle_Registration(this);
ob.Show();   
this.hide();

But the problem here is, in the Vehicle_registration Page, if the user clicks the Close Button in the Control Box then this page is closing, but the previous page(Main Page) is not in visible. I don’t want to disable the Close Button. Where i Can write the code for visiability for the Main Page?

  • 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-25T09:33:29+00:00Added an answer on May 25, 2026 at 9:33 am

    if I get it right the way you are doing things, you pass this to the other form constructor so you have a reference to your first Form in there.

    in the Form_Closing event of the second form just do Parent.Show(); or anything similar using the form reference you got in the construction.

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

Sidebar

Related Questions

I'm working on a windows forms application (C#) where a user is entering data
I am doing some maintenance on a VB6 Windows application. I have a .Net
I have an ASP.NET web application that takes user input across several forms. Sort
I have a requirement to create a simple windows forms application that allows an
I am building a Web Application using asp.net (C#). I come from windows forms
I have a C# Windows Form application that contains a menu with this event:
In my ASP.Net application I have a requirement that when a user clicks on
I have a Crystal Report set up to run with my windows forms application.
I am writing a small Windows Forms application in C#. Basically, it will ask
I am doing an application a Windows Form application. At first, a certain form

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.