-
Notifications
You must be signed in to change notification settings - Fork 1k
Labels
📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarrenplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarrenarea-HDPI-PMv2Issues related to high DPI PerMonitorV2 modeIssues related to high DPI PerMonitorV2 modearea-HDPI-SAIssues related to high DPI SystemAware modeIssues related to high DPI SystemAware mode
Milestone
Description
.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.
kirsan31
Metadata
Metadata
Assignees
Labels
📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarrenplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarrenarea-HDPI-PMv2Issues related to high DPI PerMonitorV2 modeIssues related to high DPI PerMonitorV2 modearea-HDPI-SAIssues related to high DPI SystemAware modeIssues related to high DPI SystemAware mode