[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

How to set the Font property

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?
0
cmdolcet
Asked:
cmdolcet
1 Solution
 
jpaulinoCommented:
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

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now