0

Hi,

I have 2 forms, Main & About.

When the About form is showing it is TopMost, now I have added code so that when a LinkLabel is clicked on the About form, the About form closes:-

Form.ActiveForm.Close();

This works fine except that the Main form is now TopMost and sits above the opened browser window.

What I am trying to achieve is to change the Main forms WindowState to Minimized just prior to calling the About form close.

I thought that this would work:-

Main.WindowState = FormWindowState.Minimized;

but it doesn't, sadly I am missing something.

Any pointers would be lovely.

Regards..,

MT

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
1

Correct me if I am wrong.

this.WindowState = FormWindowState.Minimized;
            Form2 f = new Form2();
            f.TopMost = true;
            f.ShowDialog();
            this.Focus();
            this.WindowState = FormWindowState.Normal;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.