Resizing Forms as per Screen Resolution
-
Hi to all, I have a problem regarding form resizing. I am devloping a window application using C#.NET. I am using an MDI Form to open other Forms. I have set padding property of that MDI Form. The problem I have is, whenever I am Changing the screen resolution My form does not resize. Please help me to solve my problem. How can I resize my window Form dynamically as per the screen resolution changes or is there any solution so that eventhough the screen resolution changes My form design should not change -- Thanks & Regard Sanket Patil.
.
-
Hi to all, I have a problem regarding form resizing. I am devloping a window application using C#.NET. I am using an MDI Form to open other Forms. I have set padding property of that MDI Form. The problem I have is, whenever I am Changing the screen resolution My form does not resize. Please help me to solve my problem. How can I resize my window Form dynamically as per the screen resolution changes or is there any solution so that eventhough the screen resolution changes My form design should not change -- Thanks & Regard Sanket Patil.
.
Catch the Microsoft.Win32.SystemEvents.DisplaySettingsChanged and DisplaySettingsChanging events. When you receive the DisplaySettingsChanging event, make a note of the then-current resolution. When you receive the DisplaySettingsChanged event, get the current resolution. You now have the two needed resolutions; if they're equal, you don't need to do anything. If they aren't, then the Form's width is [PreviousWidth * (previousResolution.Width / currentResolution.Width)] and the height applies the same formula, but with heights instead of width
Between the idea And the reality Between the motion And the act Falls the Shadow