<p>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.</p>

[{'answer_id': 35665, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': True, 'text': '<p>There is no way (that I know of) to do what you ask with typical WinForms.</p>\n\n<p>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.</p>\n\n<p>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.</p>\n'}, {'answer_id': 296054, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 4, 'selected': False, 'text': '<p>I had the same problem and I solved it this way in c#. Code goes on Form load</p>\n\n<pre><code>float scaleX = ((float)Screen.PrimaryScreen.WorkingArea.Width / 1024);\nfloat scaleY = ((float)Screen.PrimaryScreen.WorkingArea.Height / 768);\nSizeF aSf = new SizeF(scaleX, scaleY);\nthis.Scale(aSf);\n</code></pre>\n\n<p>This "more or less" scales form and all children. Loops forever in 800x600 (?)\nYou have to set the following Form properties:</p>\n\n<pre><code>AutoscaleMode = Font\nAutoSize = False\n</code></pre>\n'}, {'answer_id': 17108319, 'author': 'Yuriy Grinevich', 'author_id': 2485960, 'author_profile': 'https://Stackoverflow.com/users/2485960', 'pm_score': 2, 'selected': False, 'text': '<p>You can get some kind of zoom by assigning different <strong>Font</strong> to the Form, all the controls will be zoomed accordingly if <strong>AutoScaleMode</strong> set to Font. Also settings <strong>AutoSize</strong> to False will keep form size intact, the controls will grow to the center of the form. You need to set up all Anchors correctly and test the look, since its just "kind of zoom".</p>\n\n<p>So basically here is sample constructor:</p>\n\n<pre><code>public Form1()\n{\n    InitializeComponent();\n\n    AutoSize = false;\n    AutoScaleMode = AutoScaleMode.Font;\n    Font = new Font("Trebuchet MS", \n        10.0f, \n        FontStyle.Regular, \n        GraphicsUnit.Point, \n        ((byte)(204))\n    );\n}\n</code></pre>\n\n<p>After form has been shown assigning new Font will mess up all the controls and this trick will not work.</p>\n'}]
['https://Stackoverflow.com/questions/35537', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3270/']