Skip to content

Setting MinimumSize activates the window #13698

@filipnavara

Description

@filipnavara

.NET version

All .NET version up to .NET 10 are affected. Tested on .NET 8, 9 and 10 (as of today).

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

Setting Form.MinimumSize activates the window and puts it to foreground.

Steps to reproduce

Here's a full repro app:
MinimumSizeActivation.zip

The code that triggers the issue:

            new Form().Show();
            await Task.Delay(500);
            MinimumSize = new Size(100, 100);

The new form is shown and then setting MinimumSize immediately puts the original window in the foreground.

Metadata

Metadata

Assignees

Labels

📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarrenarea-HDPI-PMv2Issues related to high DPI PerMonitorV2 modearea-HDPI-SAIssues related to high DPI SystemAware mode

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy