how do i change the font size of the data that is put in the listview?
Printable View
how do i change the font size of the data that is put in the listview?
VB Code:
Dim intSize As Integer = 12 ListView.Font = New System.Drawing.Font(ListView.Font, intSize)
Phreak
hmm..funny this code underlines the data i have in the listview...
or sometimes even cancel the data! :)
listview1.font.size = 26
Not surprised about the underlining really, you were using the wrong overload for new Font()
there are 2 overloads with 2 arguments, one takes the font name and the size and the other takes the font name and font options.
Since the font options arg is an enumeration...12 is equal to 8+4 which are the values of the "strikeout" and "underline" attributes.
You must fully qualify your code before letting it run. That's what intellisense is for :)