DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -13,6 +13,7 @@ using System.Drawing; using Newtonsoft.Json; using Gs.DevApp.Models; using System.Windows.Forms; namespace Gs.DevApp.ToolBox { @@ -150,5 +151,15 @@ rto.rtnData = json["rtnData"]; return rto; } public static float GetFontSize =10; public static void SetFont(Control control) { float size = GetFontSize; foreach (Control childControl in control.Controls) { childControl.Font = new Font(childControl.Font.FontFamily, size, childControl.Font.Style); SetFont(childControl); } } } }