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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:35:21+00:00 2026-05-24T12:35:21+00:00

I am developing my first UI C# program. I am hoping for some help.

  • 0

I am developing my first UI C# program. I am hoping for some help. My first form contains a few textboxes, and two radio buttons and a Go button. If one radio button is checked it opens a new small form, if the other is checked it opens a new large form.

when the user clicks go – this is my code –

        this.WindowState = FormWindowState.Minimized;
        int.TryParse(tbHrs.Text, out hours);
        int.TryParse(tbMins.Text, out minutes);
        int.TryParse(tbSecs.Text, out seconds);
        int.TryParse(tbWarn1.Text, out warn1);
        int.TryParse(tbWarn2.Text, out warn2);


        bool Max = rbMax.Checked;
        if (Max == true)
        {
            if (_Max == null || _Max.IsDisposed)
            {
                _Max = new Max(hours, minutes, seconds, warn1, warn2);
            }
            _Max.Show();


        }
        else
        {
            if (_Min == null || _Min.IsDisposed)
            {
                _Min = new Min(hours, minutes, seconds, warn1, warn2);
            }
            _Min.Show();
        }

so it minimizes the form where the values were entered and passes across the values to start counting down when constructing the new form. On the new form I want to have buttons to pause, which work fine. However I also want a stop/reset button. So on stop/reset click i want to close the current form but then I want to bring the first form open from minimize state – i tried the commented out line below but it did not work. Does anyone know of way I can show the first user input form from minimize state when stop close on the second form is clicked and even better if it could reset the fields to blank on my first form. Many Thanks.

    private void MinStop_Reset_Click(object sender, EventArgs e)
    {
        this.Close();
        //ParentForm.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-24T12:35:21+00:00Added an answer on May 24, 2026 at 12:35 pm

    In the parent form do:

    _min.FormClosed += (s1,e1) =>  { this.WindowState = FormWindowState.Maximized; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, let me use one sentence to let out some frustration: My god, developing
first question here. I'm developing a program in C# (.NET 3.5) that displays files
At first when developing my program I got this error the other way around;
I have a few questions about developing mobile substrate tweaks. First of all, how
I'm a newbie Cocoa developer and I'm developing my first application. I want to
What are your opinions on developing for the command line first, then adding a
I'm doing my first steps in OpenGL for Android, for developing Augmented Reality apps
I am developing a windows forms application ( c# ), and while program is
I'm developing a GUI application in Qt. This is my first GUI application and
Developing websites are time-consuming. To improve productivity, I would code a prototype to show

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.