Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using Visual Studio 2013, vb.net 4.5 with a listview control.

I can set the font of a specific listview row via:

lvApplications.Items.Item(lIndex).Font = New Font(lvApplications.Font, FontStyle.Bold)

How can I check a specific row to determine if the font is set to BOLD?

Thanks
Posted

1 solution

uhm... haven't checked what IntelliSense tells ya after putting a dot after
VB
vApplications.Items.Item(lIndex).Font

?
First Item.. 'Bold' Booolean flag that tells you exactly that.
VB
vApplications.Items.Item(lIndex).Font.Bold
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900