Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i change fonts,colors and sizes in all forms by c#
Posted
Updated 17-Aug-15 20:39pm
Comments
Sanket Saxena 18-Aug-15 2:31am    
Why you need this? Changes in all pages using C#.
Member 11916363 18-Aug-15 2:43am    
because my grand fathers eyes are weak and i need it for those peoples cant see good
lukeer 18-Aug-15 3:11am    
Theres a "Dots per inch" setting in your operating system somewhere. Set it to a lower rate to make buttons and stuff spread over more inches. But be prepared that some software will look ugly due to its developers not thinking of other-than-standard dpi settings.

1 solution

C# is a programming language and as such you can control the forms in your own program only.

ifyou want to change the readability of entire windows rightclick anywhere on the destktop, choose screen resolution, then "Make text and other items larger or smaller, flap to larger and click apply.

also familiarize yourself with the magnifier which in windows 7 is activated with windows key + '+', after that windows key and +/- will zoom in and out and windows key + esc will exit, this is hugely usefull at times. in fact an expert at using these shortcuts can pretty easily see anything at will which is on screen and has pixels enough. Here are the rest of the shortcuts:

Ctrl+Alt+Spacebar Preview the desktop in full-screen mode
Ctrl+Alt+F Switch to full-screen mode
Ctrl+Alt+L Switch to lens mode
Ctrl+Alt+D Switch to docked mode
Ctrl+Alt+I Invert colors
Ctrl+Alt+arrow keys Pan in the direction of the arrow keys
Ctrl+Alt+R Resize the lens

also did you know that holding down the ctrl key and scrolling on the mouse will zoom in or out on most applications, especially well implemented in the opera browser incidently.

Now as a C# programmer you may want to include font scaling to handle user doing the ctrl+scroll e.g. in your own base form and derive all your future forms from that.
Also you wanna handle a scroll event so that it resizes the font as one of the most common mistakes is to enable font scaling without handling that the size of the font which is scale is unlikely to fit the space allocated to the default label for instance and in this case the magnifier actually does a better job, unless you really go overboard on usability there, which IMHO you should ;) as you will ALWAYS be able to do that again, ever after!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900