Please tell me
Is it possible to change the Font or Font style (Bold/Italic etc.) at run time. If it is possible then please tell me how ?
Thanks
Printable View
Please tell me
Is it possible to change the Font or Font style (Bold/Italic etc.) at run time. If it is possible then please tell me how ?
Thanks
Sure , this way :
VB Code:
Dim fnt As New FontDialog() fnt.ShowDialog() Me.ListView1.Font = fnt.Font
Thanks Pirate
Let me tell more:
1. I want to change it programatically.
2. I want to change font of only one item (not all)
The functionality I want to give is, when user select a Item, the selected Item's font will change.
Thanks
Is this what you mean ?
VB Code:
Me.ListView1.Font = New System.Drawing.Font("Times New Roman", 10)
This would change font property for the first item in the listview collection items .
VB Code:
Me.ListView1.Items.Item(0).Font = New System.Drawing.Font("Times New Roman", 10)
Thanks Pirate, its solved