Easiest way to change font and font size

后端 未结 6 1635
迷失自我
迷失自我 2020-12-02 17:01

which is the easiest way to change Font size with C#.

with java it can all be done easily by calling Font constructor with necessary arguments.

JLab         


        
6条回答
  •  半阙折子戏
    2020-12-02 17:21

    Use this one to change only font size not the name of the font

    label1.Font = new System.Drawing.Font(label1.Font.Name, 24F);
    

提交回复
热议问题