Search code examples
c#winforms

Zoom for a windows form in C#


Is there an easy way to set the zoom level for a windows form in C#? In VBA there was a zoom property of the form.


Solution

  • There is no way (that I know of) to do what you ask with typical WinForms.

    If you're doing custom painting/drawing, you can zoom that by using a zoom transform, but so far as I know there is no "Zoom" property for the form in the entire world of .NET and native Windows/C++ APIs combined.

    You could probably rig something yourself such that you scale controls by a constant factor. And you can probably find 3rd-party controls/surfaces which support this. And who knows what is possible with WPF. But in a typical WinForms world, no.