Hi,
I wnat to set the font size for following code...
this.listView1.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Text
Thanks in advance.
Regards,
Shilpa
Hi,
I wnat to set the font size for following code...
this.listView1.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Text
Thanks in advance.
Regards,
Shilpa
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Scott LysleRank #49 · 31K reputationPosted Oct 6, 2007, 12:03 AM EDT
You can do something like this to apply a font style to an existing font:
this
.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font = new Font(lstView.Font, FontStyle.Bold);Or you can define the font using something like one of these:
this.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font=
new Font("Verdana", 17);this.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font=
new Font("Calista", 14, FontStyle.Bold);