HI FOLKS,
How to increase font size of all text contents present in the windows form after maximizing the same?
Increase Font Size
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
FroglegRank #1,020 · 1.9K reputationPosted Dec 29, 2011, 10:13 AM EST
private void button1_Click(object sender, EventArgs e)
{
this.Font = new Font(this.Font.FontFamily.Name, 20);// change to larger font - also increases form size
}
private void button2_Click(object sender, EventArgs e)
{
this.Font = new Font(this.Font.FontFamily.Name, 8);// change to original font - also decreases form size - assuming 8 is original size
}
Satyakaama Mugali3 reputationPosted Jan 1, 2012, 8:23 PM EST