How to set the Font property

Posted on 2008-11-12
Last Modified: 2013-11-26
When I set a property this way:
CType(newGraphics.readingLabelArrayList(intloop), Label).Font.Bold = True

It gives me an error stating that the property bold is only read only.....

How can I do this to set the font bold property to true?
Question by:cmdolcet
    1 Comment
    LVL 48

    Accepted Solution

    You have to do something like this:
    CType(newGraphics.readingLabelArrayList(intloop), Label).Font = New Font(CType(newGraphics.readingLabelArrayList(intloop), Label).Font, FontStyle.Bold)

    Open in new window


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now