The user can change the size of the form. Accordingly, the size of the TextBox is changed. Is it possible to make the text font in TextBox increase / decrease depending on the size of the TextBox?

    1 answer 1

    We hang the handler on the SizeChanged textbox. Handler code

    private void ResizeFont(object sender, System.EventArgs e) { TextTextBox.Font = new System.Drawing.Font(TextTextBox.Font.FontFamily, TextTextBox.Size.Height * 25 / 100); }