I am vb.net developer not so fluent in C#
sorry if any mistake in code-blocks,
but process should like below...,
create a class LookNFeel
create static 'NewFont' variable so, that in your application it can work as global variable... and you can retrieve it in other forms easily.
public class LookNFeel
{
Public static Font NewFont = New Font("Arial", 12);
Public static SetFont(string FontName,int as fontsize)
{
NewFont = New Font(FontName, fontsize);
}
}
Now, from Form1 when click button call function to set font in global NewFont variable
LookNFeel.SetFont(ComboFontNm.Text, convert.ToInt32(ComboFontsize.Text));
in Form2's Load event set font like this
foreach (Control c in this.Controls)
{
c.font = LookNFeel.NewFont;
}
Happy Coding!
:)