Click here to Skip to main content
15,902,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

A working in a C# Winforms Application.

I have used a DataConstants Class to declare all constants for my applications.

like

Public class DataConstants
{
public const string FontName = "Verdana";
public const int FontSize = 8;

}


The declaration includes fontname and size...

Now I want to give a global settings for Fonts...

How to achieve this?



Thnaks and Regards..
Posted

1 solution

Every time you create a control that uses a font, set it's Font property to a Font that you expose from this class using these values.
 
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