WinForms auto scale

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add "Scale" menu with items 50%, 100% and 150%. When user selects
one of them, the form should be scaled accordingly.

Like if user selected 50%, the form controls should shrink to 50% of their
original size; in 100% should restore original size and of 150% is selected,
form controls should be expanded by 150%. This applies to all controls
including label.

Kindly let me know or point me to how to achieve this.
 
For this and your other question you will probably find that a custom layout
engine is useful.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top