Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting MinimumSize activates the Form #12497

Open
pushkin- opened this issue Nov 15, 2024 · 0 comments
Open

Setting MinimumSize activates the Form #12497

pushkin- opened this issue Nov 15, 2024 · 0 comments
Labels
area-HDPI HDPI, not specific to Dpi mode of app
Milestone

Comments

@pushkin-
Copy link

.NET version

.NET 8-windows

Did it work in .NET Framework?

Not tested/verified

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

not that I know of

Issue description

I'm seeing that setting MinimumSize on a Form, activates it.

This was reported here: #7251 though not sure what the resolution was

And here #3020 where it's suggested that they don't want to fix this.

I haven't found a good workaround for this. I can detect if the Form isn't active and pend the MinimumSize set for when it becomes active, but this causes others problems for me, so I would like this fixed.

Steps to reproduce

.net 8 WinForms app on Windows 11, per-monitor v2 DPI (though this reprod when the app wasn't DPI aware)

can paste some sample app if I have time, but just create a barebones app that sets MinimumSize on a timer a couple times and focus on another Form. Focus should move to the first Form.

@pushkin- pushkin- added the untriaged The team needs to look at this issue in the next triage label Nov 15, 2024
@elachlan elachlan added the area-HDPI HDPI, not specific to Dpi mode of app label Nov 16, 2024
@merriemcgaw merriemcgaw added this to the Future milestone Nov 19, 2024
@merriemcgaw merriemcgaw removed the untriaged The team needs to look at this issue in the next triage label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-HDPI HDPI, not specific to Dpi mode of app
Projects
None yet
Development

No branches or pull requests

3 participants