Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7784231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:03:43+00:00 2026-06-01T20:03:43+00:00

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

  • 0

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.

JLabel lab  = new JLabel("Font Bold at 24");
lab.setFont(new Font("Serif", Font.BOLD, 24));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:03:44+00:00Added an answer on June 1, 2026 at 8:03 pm

    Maybe something like this:

    yourformName.YourLabel.Font = new Font("Arial", 24,FontStyle.Bold);
    

    Or if you are in the same class as the form then simply do this:

    YourLabel.Font = new Font("Arial", 24,FontStyle.Bold);
    

    The constructor takes diffrent parameters (so pick your poison). Like this:

    Font(Font, FontStyle)   
    Font(FontFamily, Single)
    Font(String, Single)
    Font(FontFamily, Single, FontStyle)
    Font(FontFamily, Single, GraphicsUnit)
    Font(String, Single, FontStyle)
    Font(String, Single, GraphicsUnit)
    Font(FontFamily, Single, FontStyle, GraphicsUnit)
    Font(String, Single, FontStyle, GraphicsUnit)
    Font(FontFamily, Single, FontStyle, GraphicsUnit, Byte)
    Font(String, Single, FontStyle, GraphicsUnit, Byte)
    Font(FontFamily, Single, FontStyle, GraphicsUnit, Byte, Boolean)
    Font(String, Single, FontStyle, GraphicsUnit, Byte, Boolean)
    

    Reference here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a quick question, which is the easiest way to loop inside
What is the easiest way to create a Silverlight Button with custom Content which
What's the easiest way to convert a C++ std::string to another std::string, which has
Using Paypal, what is the easiest way to create a page on which a
Which is the easiest and most unobstrusive way to keep an ASP.NET session alive
Which static analysis tools for Java has easiest extension mechanism. I checked PMD But
what is the easiest way to find out those data which has been changed
I'm looking for the best/easiest way to add extensions to an existing protocol (can't
What is the easiest and best way to trigger change event when setting the
I have the following constructor method which opens a MemoryStream from a file path:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.