Page 1 of 1

Change component font size by code

Posted: Sat Oct 10, 2015 1:30 pm
by beso
Hello,

how can i change text box Font Size by code

In Ms Access Report it is very simple :
Me.R_NmSTR.FontSize = (Me.FS)

Me.FS is a column in my table

Thanks

Re: Change component font size by code

Posted: Mon Oct 12, 2015 6:44 am
by Alex K.
Hello,

You can use the following code in the BeforePrint event:
Text1.Font = new System.Drawing.Font("Arial", Me.FS);

Thank you.