Home All Groups Group Topic Archive Search About

Listview item fontstyle

Author
8 Jul 2006 3:05 PM
Tiago Salgado
I everyone... i'm having some problems when i'm trying to change a item =
=

fontstyle in a listview (details view).

Code:

frmMain.FeedsList.Items(CInt(id1)).Font.Style =3D FontStyle.Regular

The problem is the property FontStyle is read-only. Can anyone help me  =

with this please ?

Thanks

Author
8 Jul 2006 3:23 PM
Herfried K. Wagner [MVP]
"Tiago Salgado" <tiagosalgado.developer> schrieb:
>frmMain.FeedsList.Items(CInt(id1)).Font.Style = FontStyle.Regular
>
>The problem is the property FontStyle is read-only. Can anyone help me
>with this please ?

Create a new 'Font' object with the desired style (see 'Font' constructors)
and assign it to the item's
'Font' property.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
8 Jul 2006 3:59 PM
Tiago Salgado
Thanks a lot. It works  ;)

On Sat, 08 Jul 2006 16:23:46 +0100, Herfried K. Wagner [MVP]  =

<hirf-spam-me-here@gmx.at> wrote:

Show quoteHide quote
> "Tiago Salgado" <tiagosalgado.developer> schrieb:
>> frmMain.FeedsList.Items(CInt(id1)).Font.Style =3D FontStyle.Regular
>>
>> The problem is the property FontStyle is read-only. Can anyone help m=
e  =

>> with this please ?
>
> Create a new 'Font' object with the desired style (see 'Font'  =

> constructors) and assign it to the item's
> 'Font' property.
>



-- =

Tiago Salgado
http://www.foruns.org