The WinForms Notepad Project: Fixing Zoom and Edit Commands (Premium)


Fixing zoom

The way that we originally implemented Zoom In and Zoom Out was somewhat arbitrary and doesn’t resemble the way the new Notepad works: Instead of zooming the view, these menu items increase/decrease the size of the font displayed by TextBox1 by one point (and they only work within a somewhat arbitrary range of 1 to 72 points.) As bad, changing the zoom value (really the font size) doesn’t change the Zoom value in the status bar. And whatever the “zoom” value was set to persist with the app.

Gain unlimited access to Premium articles.

With technology shaping our everyday lives, how could we not dig deeper?

Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.

Become a Premium Member Create a Free Account