leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
438 stars 132 forks source link

Fix MaximizedBounds issue with multiple monitors #286

Closed VolatilePulse closed 2 years ago

VolatilePulse commented 2 years ago

I'm not sure this is the best approach, however, it should resolve #277. I believe the Windows message for Min/Max Info might be a better approach but is significantly more involved.

Edit: A noted side effect of this change is that the form actually starts on the same monitor as the IDE instead of just the main monitor. Please note this is intentional behavior for WinForms, it was apparently just broken previously.

orapps44 commented 2 years ago

Thanks for this fix.