WinForms auto scale

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.
 
B

Bob Powell [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top