HI ,

i m using System.Windows.Forms.ListView control.
i want to set the text in the subItems to bold at run time.

How do i acchieve this :!:

Thanks in advance.

Correct me if I'm wrong, but I believe you can simply use the public property "font" for this, as in "MyControl.Font.Style" Or "FontStyle.Bold".

HI ,

i m using System.Windows.Forms.ListView control.
i want to set the text in the subItems to bold at run time.

How do i acchieve this :!:

Thanks in advance.

Correct me if I'm wrong, but I believe you can simply use the public property "font" for this, as in "MyControl.Font.Style" Or "FontStyle.Bold".

hi,
thanks for ur response,
ya wat u say is right, i have used both of these but these are read only properties so it just tell u if the text for the controll is bold or not.

But i need to set it to bold based on some condition and again unbold it.

i hope u got my point.

hi,
thanks for ur response,
ya wat u say is right, i have used both of these but these are read only properties so it just tell u if the text for the controll is bold or not.

But i need to set it to bold based on some condition and again unbold it.

i hope u got my point.

Lol, well this response is super late but this article should explain it.

http://msdn2.microsoft.com/en-us/library/3essdeyy(VS.80).aspx

This article has been dead for over six months. Start a new discussion instead.