I'm trying to change the font size of a listview in details view.
Here's an excerpt of the code I think is relevant to my problem.
Then in another procedureCode:Dim Item1 As New ListViewItem(Values(0)) Item1.UseItemStyleForSubItems = False Item1.SubItems.Add(Values(12)).ForeColor = Color.Green Item1.SubItems(12).Font = New Font(Item1.SubItems(12).Font, FontStyle.Bold) ListView1.Items.Add(Item1)
The result is that the column headings and every item and subitem in the listview changes to font size 12 except the subitems that were bold. The subitems that are bold do not change.Code:ListView1.Font = New Font(ListView1.Font.FontFamily, 12, ListView1.Font.Style)
Does anyone know why?


Reply With Quote